Why does the modified time change when placing files inside a UNIX directory?
Applies to
- NFSv3
- NFSv4.x
Answer
Adding files to a UNIX directory modifies the directory file, adding the associated inodes of the child files created. Thus the modified time is updated.
Additional Information
Clients have the ability to decide if/when mtime of a directory should be changed. See: rfc1813