Skip to content

Sets the datetime stamp of a file (zip/tar/tar.gz/tar.bz2/tgz/egg/whl/gem/ioc/iso/pdf/jpg/tif/wav/docx & many others) to the newest date/time of files inside the archive or the creation/mod time based on internal data

StephenGenusa/touch-archive-datetime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

touch-archive-datetime

Sets the datetime stamp of an archive file zip/tar/tar.gz/tar.bz2/tgz/egg/whl/gem/ioc/iso/docx to the newest datetime of files inside the archive/container or modification/creation time in the case of ioc/pdf/jpg/tif/wav files. It now supports any file type that the hachoir-metadata module supports (33 as of this date), where a creation or modification date can be returned (not sure how many).

Stores a list of apparently invalid archives and offers the option to delete or send-to-trash those files. Important: Some platforms may have a version of Python compiled that does not include, say the zlib library, so the archive may appear invalid when it is actually valid but unreadable by that version of Python. You'll want to make sure that this isn't the cause of failure before wiping out a bunch of files. Can optionally use the send2trash module if it is installed.

About

Sets the datetime stamp of a file (zip/tar/tar.gz/tar.bz2/tgz/egg/whl/gem/ioc/iso/pdf/jpg/tif/wav/docx & many others) to the newest date/time of files inside the archive or the creation/mod time based on internal data

Resources

Stars

Watchers

Forks

Packages

No packages published