fadden / CiderPress2

Tool for working with Apple II and vintage Mac disk images and file archives.
https://ciderpress2.com/
Apache License 2.0
50 stars 7 forks source link

Preserve directory timestamp during copy #26

Open sean-gugler opened 4 months ago

sean-gugler commented 4 months ago

(CiderPress II 1.0.2)

Timestamps are already preserved on files. This is true when using copy+paste on individual files or on a directory; the files nested within retain their original stamps.

Copying a directory should also preserve the timestamps of the directory itself. Currently the copies get a fresh timestamp from the host's wall clock.

This is important from an archival / historian perspective. When gathering collections onto a 32MB hard disk image from multiple sources, it's better if they retain all their original attributes.

sean-gugler commented 1 month ago

Confirmed, this works in 1.0.4. Thank you!

Next request is to also preserve directory timestamps during export. Would you rather track that request here or as a separate issue#? (low priority, "stretch goal")

fadden commented 1 month ago

I can reopen this one. Preserving during export is a little harder because it requires a "finalization" pass after everything else is done.