|
Posted by Michael Vilain on 02/15/06 10:47
In article <138d.43f15d36.64a72@clunker.homenet>,
Jasen Betts <jasen@free.net.nz> wrote:
> On 2006-02-13, Gordon Burditt <gordonb.czonn@burditt.org> wrote:
> >>I know about getlastmod() but is there one for created date?
> >>
> >>If not is there some other way of getting the created date of a file?
>
> filemtime, stat, fstat, lstat, `ls -lc $fname` ....
>
> > Very few operating systems keep the created date of a file.
>
> Linux, and and anything with VFAT or NTFS ( = windows-32bit+) do.
>
> I'd be surprised if BSD or OS/X are different.
>
> which OS's don't?
>
>
> Under linux the "creation" date is really the date of last change of the inode
> (last time the file changed size or access permissions) and the
> modification time is the time the file data was written.
>
> access time is the last time the file content was read, VFAT only stores
> the access date IIRC. dunno about NTFS.
>
>
>
>
> Bye.
> Jasen
MacOS X stores the file creation date but in the Finder's attributes,
not the inode. So, ls still shows ctime but using getFile will display
the file create time plus various Finder flags.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
[Back to original message]
|