Dr-Emann / applesauce

Transparent compression for Apple File System Compression (AFSC)
GNU General Public License v3.0
21 stars 0 forks source link

Enhancement Request: Keep original modified dates on directories #14

Closed akrabu closed 7 months ago

akrabu commented 1 year ago

It would be nice if you could maintain the original access and modified dates. Just a thought. Thanks!

Dr-Emann commented 1 year ago

Applesauce does reapply the original access and modified dates. MacOS does also keep a "change" date (the last metadata change) which appears to be impossible to set, however.

akrabu commented 1 year ago

Weird. Trying to reproduce today (v0.3.0) it maintained the modified date. Previously, on a large recursive job, the modified date was updated to compression time. I can't seem to do it on individual files though. I'll play around and see if I can't reproduce it on a larger dataset.

akrabu commented 1 year ago

Ah. It's folders. The folder modification dates change, not the files. Which, I suppose is to be expected. I just have some picky users that rely on modification dates more than they should to find things haha

Dr-Emann commented 7 months ago

@akrabu Believe this should be fixed, in 0.5.2 we should now reset the modified times on directories after we compress their contents. Note that it's not atomic (if you kill applesauce in the middle of an operation, directories won't be reset, and during the compression operation, the directory modified dates will change, then be reset)

Dr-Emann commented 7 months ago

With 0.5.3, should also restore timestamps for when the file was created and added as well.