Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: How to determine the last modified date for a directory?

by cforde (Monk)
on Jul 31, 2001 at 22:27 UTC ( [id://101254]=note: print w/replies, xml ) Need Help??


in reply to Re: How to determine the last modified date for a directory?
in thread How to determine the last modified date for a directory?

Is the modification time for a directory dependent on the Windows version? WinNT SP6a, at least, updates the modification time when the directory permissions change, a file is added, updated or deleted.

Have fun,
Carl Forde

  • Comment on Re: Re: How to determine the last modified date for a directory?

Replies are listed 'Best First'.
Re: Re: Re: How to determine the last modified date for a directory?
by tachyon (Chancellor) on Jul 31, 2001 at 22:42 UTC

    You have these options:

    -d True if file is a directory -M Age of file in days when script started. -A Same for access time. -C Same for inode change time.

    I tested this on a Win 95 box cause thats what is in front of me here. As Win 95/98 has little concept of permissons it will quite probably be different to NT which is basically a totally different OS. A little quick testing will show you what is happening, like the example above. You can add some dirs/files, change the permissions, add some sleeps and compare results of -M -A -C in a few lines to get the results you want.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://101254]
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-25 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found