Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: How do you modify the creation date of a folder?

by trantor (Chaplain)
on Oct 04, 2001 at 14:48 UTC ( [id://116674]=note: print w/replies, xml ) Need Help??


in reply to Re: How do you modify the creation date of a folder?
in thread How do you modify the creation date of a folder?

ctime, in standard UNIX semantics, is not the creation time of the file. It is a timestamp updated whenever the file or directory's inode is updated (e.g. with chmod or chown, or when utime(2) is called on the file itself). It can be thought as a "change time" but definitely it is not the "creation time".

As far as I know it cannot be altered without low level editing of the partition where the inode resides.

So, ruffing, you're out of luck twice: once because ctime cannot be altered, twice because it is not the creation time. This also means that it's probably a good idea to follow theorbtwo's suggestion and change your Perl scripts: you're not relying on the creation time of the inode, but rather on the time it was last updated, which can be totally different.

-- TMTOWTDI

  • Comment on Re: Re: How do you modify the creation date of a folder?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://116674]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-16 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found