Reply to Re: File Created Date?

Your name:

Reply:


Posted by Gordon Burditt on 02/14/06 04:31

>> >If not is there some other way of getting the created date of a file?
>
>> Very few operating systems keep the created date of a file.
>
>It's not about Operating Systems (Win, Linux, Mac), but File Systems (FAT,
>NTFS, HPFS, UFS, ext2, ext3, ReiserFS, XFS, JFS).
>
>Different filesystems keep different metadata about the files, but most of
>them don't keep track of the creation time of the file. Have a look at
>http://en.wikipedia.org/wiki/Stat_(Unix) for a better understanding of the
>"ctime" field, which will be, in most cases, the closest you'll get to the
>file creation time. Also, have a look at

I disagree. On filesystems where both exist, *mtime*, not ctime
will be the closest to the file creation time. Unless someone has
been manually fiddling with the time stamps (as, for example, a tar
extract will do), ctime >= mtime.

Gordon L. Burditt

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация