A helper package to monitor files
Project description
filewatcher
This is a helper package to monitor files. You can use Github-flavored Markdown to write your content.
Usage:
''' #Install package using the below command
pip install filewatcher
'''
import filewatcher
Retrieves files information from sub-directories too if recuresively=True
files_info_dict = filewatcher.get_files_info(directory='/home/krishna/mygit-repos/',recursively=True)
Doesn't retrieve files information from sub-directories if recursively=False
files_info_dict = filewatcher.get_files_info(directory='/home/krishna/mygit-repos/',recursively=False)
for k,v in files_info_dict.items(): print('key:', k) print('value:') # path attribute consists of file path in str print('path: '+ v.path) # name attribute consists of file name in str print('name: '+ v.name) # size attribute consists of file size in str print('size: '+ v.size) # time attribute consists of file modified time in datetime print('time: '+ v.time.strftime('%d%m%Y%H%M%S')) # text attribute consists of retrival status print('text: '+ v.text)
''' output: key: /home/krishna/mygit-repos/New Empty File_08062020010939 value: path: /home/krishna/mygit-repos/New Empty File name: New Empty File size: 8 B time: 08062020010939 text: Information '''
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for filewatcher-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4631441d642e8a81646238ebd4b228a33238d058f6593a585e2a471c07a04072 |
|
MD5 | 2ddac4cc5d0b25fd5abca9137337302c |
|
BLAKE2b-256 | 78c2b08c7ec94825726cf4171e2168c08cc78c3564f457ec631834e4bd01cb8a |