Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by tune (Curate)
on Oct 03, 2001 at 19:47 UTC ( [id://116485]=note: print w/replies, xml ) Need Help??


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

Here's a nasty trick if you really want to do it:

create a temporary folder (e.g. _tmp), and move every file into it, delete the old folder, and rename _tmp to the original name. Then you will have a creation time. Though you will be able to make it the current date only.

--
tune

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

Replies are listed 'Best First'.
Re: Re: How do you modify the creation date of a folder?
by ruffing (Acolyte) on Oct 03, 2001 at 22:12 UTC
    One solution I found was to update the system time of the computer to the date in the past I want the folder to be created on. Add the files to that folder and reset the date of the computer. That will allow me to make it more than just the current date. The downfall however is a lot of folder renaming ... and the side-effects of altering the computer's time and date.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-23 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found