c# - Is it reliable to use Last Modified timestamp of directory while doing a backup? -


i'm designing simple incremental backup tool. possible, after modify contents of directory, "last modified" attribute of directory stay intact? reason might ntfs glitch or bug, don't know.

i found out there option ntfsdisablelastaccessupdate. possible turn off modification timestamp update?

i want know how reliable attribute is, can decide if it's idea use make backups of filesystem.

i'm using filesysteminfo.lastwritetime extract information in c#.

i not think, last modified timestamp reliable.

the timestamp decided file system using.

e.g. fat32 uses local timestamp when dealing modified/created time.

while ntfs uses utc timezone.

also, fat32 has around 2 second resolution last write times. means cannot accurately record last modified date seconds.

also, when copying files fat32 ntfs , see whole bunch of other timestamp problems.

there rules how timestamp decided filesystems

moreover , change timestamp of files , folders using third party tools easily.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -