How do I write Python code that enters a file and outputs its 'type-size' properties?
Question:
How do I write Python code that enters a file’pdf,word, png…’ and outputs its ‘type-size’ properties ?
How do I write Python code that enters a file and outputs its ‘type-size’ properties
Answers:
For the type check this out:
https://pypi.org/project/filetype/
For the size you can just use os.path.getsize()
How do I write Python code that enters a file’pdf,word, png…’ and outputs its ‘type-size’ properties ?
How do I write Python code that enters a file and outputs its ‘type-size’ properties
For the type check this out:
https://pypi.org/project/filetype/
For the size you can just use os.path.getsize()