目录上次修改日期 [英] Directory last modified date

查看:107
本文介绍了目录上次修改日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道目录最后修改日期何时发生变化。我修改了一个特定目录内的文件(通过FTP),但目录的LMD没有改变。它是如何运作的?

解决方案

目录本身上的mtime(修改时间)在文件或子目录为添加,删除或重命名。



修改目录中文件的内容不会改变目录本身,也不会更新文件或子目录的修改时间。如果您更改目录的权限,则ctime会更改,但mtime不会。


Am wondering when the directory last modified date is changed. I modified a file inside a particular directory (via FTP), but the directory's LMD did not change. How is it suppose to function?

解决方案

The mtime (modification time) on the directory itself changes when a file or a subdirectory is added, removed or renamed.

Modifying the contents of a file within the directory does not change the directory itself, nor does updating the modified times of a file or a subdirectory. If you change the permissions on the directory, the ctime changes but the mtime does not.

这篇关于目录上次修改日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆