Re: Need way to set the Creation date of a file via OSX
Re: Need way to set the Creation date of a file via OSX
- Subject: Re: Need way to set the Creation date of a file via OSX
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 17 May 2005 22:28:17 -0400
Well, even the original UNIX filesystem had something called the
"creation time" (ctime), stored separately from both mtime and atime,
which some versions of touch(1) will set (though not the version that
ships with Tiger, apparently). It's just that it's not really a
creation time, but a metadata-modification time, so anything that
touches the metadata (changing the permissions, for instance) updates
the ctime.
Does HFS+ have a real creation time apart from the ctime?
On 5/17/05, John C. Welch <email@hidden> wrote:
On 5/17/05 20:53, "Mark J. Reed" <email@hidden
> wrote:
> In the filesystem's metadata you have these:
> 3. "Creation" time/ctime (can actually change over the life of the file)
> 4. Modifcation time/mtime (last time the file was changed, initially same as
> ctime)
> 5. Access time/atime (the last time the file was read by any program or
> process)
>
> The UNIX command touch(1) can be used to change these.
Touch is unreliable for creation date/time, since it was written around
UFS/UFS - style filesystems which don't have separate creation date/time
metadata in the file system. ls - l shows this even for HFS systems.
Barring a rewrite of touch to deal with HFS+ metadata, SetFile is the most
reliable way to deal with this for a scripter.
--
"The Exertion of Better Men"
- Motto for Special Boat Unit 22, Det 122- Sacramento , Ca.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
--
Mark J. Reed <
email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden