A python library which gives information about a specific file.
-
- Return the name of the file
- Return the size of a given file name
- Create and return the Sha1 hash
- Create and return the MD5 hash
Clone the xtractor repo using this command:
https://github.com/ppatel221/xtractor.git
After cloning the repo go into the xtractor repo and execute the command:
python fileInfo.py data/mydata.txt
-
getName(path): mydata.txt
getSize(path): 44
getSHA1(data): be417768b5c3c5c1d9bcb2e7c119196dd76b5570
getMD5(data): 37c4b87edffc5d198ff5a185cee7ee09
There is always a way to improve an existing project. Feel free to look at the code and request for PR
The project is currently licensed under the MIT license.