Skip to content

zxalif/filestat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

filestat

filestat A command line library for file monitoring.

Authors:Alif Jahan
Version:0.2 of 05/05/2019

installation

Using pip

$ pip install filestat

To install filestat using git just clone the repo

$ git clone https://github.com/zxalif/filestat.git
$ cd filestat
$ pip install -e .

Usages

There is two way to access filestat with command line or with python interpreter.

  1. using bash
$ python3 -m filestat -f filename.py
Name:       filename.py
Owner:      alif
Group:      alif
Size:       1045 bytes
Update Time:        Sunday, May 05, 2019 10:50:11.640795 PM
Last Access:        Sunday, May 05, 2019 10:50:15.200863 PM
Permissions:        644
Readable:   True
Writable:   True
Executable:     False
  1. Using interpreter
>>> # to get file size
>>> from filestat import utils
>>> utils.get_size('path/to/file.py') # it returns the file size in byte
123121
>>>

License

The program under Licensed MIT.