Releases: andrzejQ/filedate
Releases · andrzejQ/filedate
v.2.3
-
filedate v.2.3
Added class FromMetadata: set file date based on its metadata.
Poorly tested, but can be useful, for example, for saved attachments from e-mail.
Dates from metadata from PDF, DOCX, ..., ODT, ... and many more - thanks to 'hachoir'. -
pip install PyPDF2 hachoir
required when FromMetadata in use.
from_file_name.py - ignore invalid time part
from_file_name.py - ignore invalid time part, more tests.
FromFileName - more cases 2; doctest
- FromFileName - more cases
- doctest
- .get_st() -> dict:
Returns a dictionary containing originaltimestamp
(Unix or Windows);
float (not int) in Linux, quadword in Windows
{'created': <timestamp>,... 'modified': <timestamp>, 'accessed': <timestamp>}
If after saving a new LastWriteTime, the LastAccessTime is set to the current time, there is probably a process in the background that reads the contents of the file, for example TortoiseGit for a file under git control. In this case doctest will show errors. (To stop TGitCache.exe open TortoiseGit Settings > Icon Overlays \ "None" \ [OK]).