spongeblink Posted July 4 Share Posted July 4 @vitor I was using /bin/cp. ‘which cp’ in the same terminal window I ran the cp command yielded ‘/bin/cp’. Link to comment
vitor Posted July 4 Author Share Posted July 4 I don’t know what to suggest more. The manpage is clear on what the option should do and I can confirm it does it on my end. spongeblink 1 Link to comment
spongeblink Posted July 4 Share Posted July 4 @vitor I have a theory… Maybe Finder's ‘Created Time’ is just what it thinks should be the correct ‘Created Time’ when it reads multiple file attributes… And different programs write the ‘Created Time’ to different attributes. But cp -p only preserves one of the them when copying. May I ask what program created the file you were testing on? Mine was macOS' screenshot feature. Link to comment
vitor Posted July 4 Author Share Posted July 4 1 minute ago, spongeblink said: Maybe Finder's ‘Created Time’ is just what it thinks should be the correct ‘Created Time’ when it reads multiple file attributes As I linked before, that’s not something you should rely on. 1 minute ago, spongeblink said: And different programs write the ‘Created Time’ to different attributes. But cp -p only preserves one of the them when copying. Highly unlikely. Apps don’t typically write those values themselves, that’s what the file system and operating system are for, to abstract those nuances. 2 minutes ago, spongeblink said: May I ask what program created the file you were testing on? Mine was macOS' screenshot feature. It was a screenshot too. Just ⌘⇧4. Link to comment
vitor Posted August 29 Author Share Posted August 29 Updated to 2024.2.Preserve attributes in the backup files.Rework output with environment variables after compression. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now