Skip to content

File Info is a Python script that can display some information about files and directories, such as size, modification time, permissions, and number of lines. It also uses some color codes to print the output in different colors depending on the file type.

License

Notifications You must be signed in to change notification settings

abdalrohman/file_info_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Info

File Info is a Python script that can display some information about files and directories, such as size, modification time, permissions, and number of lines. It also uses some color codes to print the output in different colors depending on the file type.

Project Requirements

This project requires Python 3.x and the following packages:

  • tabulate
  • wmi (only for Windows)

You can install these packages using the pip install -r requirements.txt command.

Installation

To install this project, you can download it from GitHub.

From GitHub

To install this project from GitHub, first clone or download this repository:

git clone https://github.com/abdalrohman/file_info_python.git

Then navigate to the directory where you cloned or downloaded it and run the following command:

python setup.py install

Usage

To use this project, you can run it as a script with one or more paths as arguments:

python -m file_info [-s | -l] [paths ...]

The -s option enables the short mode, which displays some basic information about each path.

The -l option enables the long mode, which displays more detailed information about each path in a table format.

If no option is given, the short mode is used by default.

If no path is given, the current directory (.) is used by default.

For example, to display some information about the current directory in short mode, run the following command:

python -m file_info

The output will look something like this:

short mode output

To display more information about the current directory and a file in long mode, run the following command:

python -m file_info -l . file_info.py

The output will look something like this:

long mode output

License

This project is licensed under the GNU V3.0 License. See the LICENSE file for more details.

About

File Info is a Python script that can display some information about files and directories, such as size, modification time, permissions, and number of lines. It also uses some color codes to print the output in different colors depending on the file type.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages