惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

www.infosecurity-magazine.com
www.infosecurity-magazine.com
D
DataBreaches.Net
T
Tailwind CSS Blog
M
MIT News - Artificial intelligence
Stack Overflow Blog
Stack Overflow Blog
F
Full Disclosure
V2EX - 技术
V2EX - 技术
N
News and Events Feed by Topic
Help Net Security
Help Net Security
L
LangChain Blog
Y
Y Combinator Blog
宝玉的分享
宝玉的分享
Google Online Security Blog
Google Online Security Blog
P
Proofpoint News Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
B
Blog RSS Feed
N
Netflix TechBlog - Medium
N
News | PayPal Newsroom
TaoSecurity Blog
TaoSecurity Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Vulnerabilities – Threatpost
B
Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
I
Intezer
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
AI
AI
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cyberwarzone
Cyberwarzone
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
G
GRAHAM CLULEY
Vercel News
Vercel News
罗磊的独立博客
MyScale Blog
MyScale Blog
Last Week in AI
Last Week in AI
博客园 - 司徒正美
C
CERT Recently Published Vulnerability Notes
GbyAI
GbyAI
Scott Helme
Scott Helme
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Troy Hunt's Blog
A
About on SuperTechFans
P
Privacy International News Feed

博客园 - 愚公

Bridges 虚拟化浪潮 MAGEUI的Hash问题 Lingoes的划词翻译功能极有可能泄露隐私 VSTO SaveCopyAs方法在Excel 2007下必须注意的一个问题 Vista Folders Always Shown In Details View - 让Vista文件夹总是使用详细资料视图 用7zip制作自动解压安装程序 安装新的Oracle Instant Client后重新配置PL/SQL Developer和环境: Certificates registry key name to MMC friendly name mapping A review of the CVS SCC PLUGIN IE8.0 TAB行为悄然改善: WSS 3.0 List WebService使用点滴 Set a password textbox for Visual Studio .NET setup project 在WinForm中控制GIF动画的启停的一种方法 foobar2000绿色版在vista下的Unhandled exception: Bad allocation Virtual Server启动时自动启动每个虚机 installState is missing ! .Net Framework 2.0配置工具Stopped Working VISTA BITS POLICY DESCRIPTION'S MISTAKE
NTFS文件及目录日期值行为
愚公 · 2007-03-12 · via 博客园 - 愚公

以下M=Date Modified, C=Date Created, A=Date Accessed, !=更改,-=不更改

目录项(文件/目录) 所属目录
M C A M C A
文件创建 ! ! ! ! - !
COPY完成 !*1 - ! ! - !
文件编辑 ! - !*2 ! - !
文件改名 - - ! ! - !
文件删除 ! - !
目录创建 ! ! ! ! - !
目录改名 - - *3 ! - !
目录删除 ! - !

*1 文件Copy的过程中,Date Modified/Created/Accessed显示的都是创建时间,Copy完成后Date Modified被改回源文件的Date Modified,Date Created不变,Date Accessed被置为Copy完成时间。
*2 在VISTA及2003下行为不同,VISTA中文件编辑后Accessed时间不变,而2003中一般要改变,这里的测试都是对文本文件使用NOTEPAD进行操作,其他形式的文件编辑根据程序的不同行为可能有所不同。
*3 无论是在VISTA还是在2003中,都发生了不可预料的结果,有时改变有时不改变。

目录项的操作只可能影响所属目录的时间,目前未发现影响再上一级目录的情况。

其实不同的文件系统,文件时间的处理精度和行为都是不一样的,文档中有提及NTFS的文件系统访问时间甚至有可能延迟一小时才更新,因此以上的测试肯定是不完全的。那么从另一个角度来讲,你的程序不能依赖于这些不确定的时间来设计。

资源管理器中默认显示的是Date Modified时间,IIS中打开目录浏览(Directory Browsing)后,文件及目录的日期显示的也都是Date Modified值。