用于文件监视的命令行库。
filestat的Python项目详细描述
filestat用于文件监视的命令行库。
Authors: Alif Jahan Version: 0.2 of 05/05/2019
安装
使用pip
$ pip install filestat
要使用git安装,只需克隆repo
$ git clone https://github.com/zxalif/filestat.git
$ cd filestat
$ python3 setup.py install
用法
有两种方法可以使用命令行或pythoninterpreter访问filestat。
- 使用bash
$ python3 -m filestat -f filename.py Name: filename.py Owner: alif Group: alif Size: 1045 bytes Update Time: Sunday, May 05, 201910:50:11.640795 PM Last Access: Sunday, May 05, 201910:50:15.200863 PM Permissions: 644
- 使用interpreter
>>># to get file size>>>fromfilestatimportutils>>>utils.get_size('path/to/file.py')# it returns the file size in byte123121>>>