Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by tune (Curate)
on Oct 03, 2001 at 19:47 UTC ( #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
Node Status?
node history
Node Type: note [id://116485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2020-07-07 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?