When does a UNIX directory change its timestamp

前端 未结 4 661
無奈伤痛
無奈伤痛 2020-12-28 12:14

I used \"touch\" on a file, updating the file\'s timestamp but the parent directory\'s timestamp did not change. However, (as expected) when I created a new file within the

4条回答
  •  星月不相逢
    2020-12-28 12:17

    A Directory is considered as changed when there is any Addition or Deletion of File/Directory inside it. If existing Files/Directories are just getting update than Parent Directory timestamp will not change.

提交回复
热议问题