/showfile

view files and permissions. Whether or not they are executable.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

FileShow

This Python script checks and displays information about a specific file, such as its size, last modified date, file type, and permissions.

Requirements

  • Python 3.x

Installing

chmod +x install
sudo ./install

Usage

fileshow [filename]

Output Example

The output will provide the following information about the file:

     File name: [file_name]
     File size: [size] bytes
     Last modified: [date_time]
     File type: [file_type]
     Permissions: [permissions]

Example Usage

asciicast

Test

If you want to run the tests, you must install the requirements. Type the following command in your terminal.

pip3 -r install test/requirements.txt

# run test
python3 test.py

License

This project is licensed under the GPL v3 License. See the LICENSE file for more information on the license terms.