Hi everyone,
When I copy files from Nautilus to my backup drive the folder modified dates remain unchanged, however when I use FFS the modified dates update to the current date and time. Note that this only happens for the folders, not the actual files.
Any thoughts on this?
Gonchetski
Ubuntu (18.04) Folder Modified Date
- Posts: 1
- Joined: 5 Feb 2019
- Posts: 309
- Joined: 7 Jan 2018
You will observe behavior like this when you do a generic copy of a directory (a more Linux-y term for folders) as well.
If a directory is the top-most item you are copying, and the item needs to be created at the destination, it will have the current timestamp there. So, if A/B exists and you copy A to another location (say, /opt), then /opt/A will have the current timestamp, but /opt/A/B will have the same timestamp as A/B.
Now, if you are making new files inside a directory, the directory has to be updated to indicate that it has those files inside it (because on most filesystems, a directory is a special file that lists the files it has "inside" it), so the timestamp is updated at this time.
If a directory is the top-most item you are copying, and the item needs to be created at the destination, it will have the current timestamp there. So, if A/B exists and you copy A to another location (say, /opt), then /opt/A will have the current timestamp, but /opt/A/B will have the same timestamp as A/B.
Now, if you are making new files inside a directory, the directory has to be updated to indicate that it has those files inside it (because on most filesystems, a directory is a special file that lists the files it has "inside" it), so the timestamp is updated at this time.