Metadata-Version: 2.1
Name: filewatcher
Version: 0.0.2
Summary: A helper package to monitor files
Home-page: https://github.com/cyberinfy/Tools/blob/master/filewatcher/filewatcher_usage.py
Author: Krishna
Author-email: kvrks@outlook.com
License: UNKNOWN
Description: # filewatcher
        
        This is a helper package to monitor files. You can use
        [Github-flavored Markdown](https://github.com/cyberinfy/Tools/blob/master/filewatcher/filewatcher_usage.py)
        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
        '''
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
