Preserve File Metadata Times When Archiving Files #12

Closed
opened 2023-01-25 09:15:57 -05:00 by gballan · 3 comments
Owner

It would be useful for the file archival to preserve the file's creation, access, and modification times.

There currently is no built-in support for setting these file metadata attributes.

It would be useful for the file archival to preserve the file's creation, access, and modification times. There currently is no built-in support for setting these file metadata attributes.
gballan added the
enhancement
label 2023-01-25 09:15:57 -05:00
Author
Owner

Using the filetime crate to handle reading and setting the file's access and modification times.

Currently there is no function to set a file's creation time, maybe this will be a future feature?

Using the [filetime](https://crates.io/crates/filetime) crate to handle reading and setting the file's access and modification times. Currently there is no function to set a file's creation time, maybe this will be a future feature?
Author
Owner

I found this fs::set_permissions function in the std::fs library: https://doc.rust-lang.org/std/fs/fn.set_permissions.html

This is handled in ed4173f3dc.

I found this `fs::set_permissions` function in the std::fs library: https://doc.rust-lang.org/std/fs/fn.set_permissions.html This is handled in ed4173f3dc39777c71df403b2a494e925283fe5c.
Author
Owner

Added in v0.2.5

Added in v0.2.5
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: BitGoblin/Zealot#12
No description provided.