Compressing files to maintain creation dates

md_sgf

Member
By compressing a folder of files, into a .7z, i can preserve the creation dates, when extracted on pc (extracted using IZArc).
I haven't been able to preserve dates of folders yet, only files.

But compressing files takes an ETERNITY (eg 10 mins for 100 images, and i won't even bother with videos as they take a few minutes each).

So, what i am wanting to do, is to use an app to read the files/folders creation/etc attributes, store them, then write attributes back to them on pc, in bulk, using software.
If i can get that working, then i might not need to compress (using 0% compression) at all!

Oh yes, why i posted on here, was to "fish" for for any ideas on using macrodroid to fetch the file attributes.
Tasker can fetch a list of files, but doesn't seem to fetch dates info.
Automate can fetch modified date only.
 
Last edited:

MacroDroidDev

Administrator
Staff member
Unfortunately the DocumentFile class in Android which is the way to access files nowadays only provides access to the modified time and you can't get at the created time.

An alternative might be to use the shell command and parse the output but of course this will be a lot more complex to create.
 

RSF

Well-known member
It might be worth looking into installing Google Drive Sync on your PC. I am pretty sure it writes new files that it finds in your Google/Android cloud account, with creation dates that match those files' dates in the cloud. And you'd have to configure the sync utility to sync images/videos as well as files in your Drive folder (and subfolders).
 
Top