[nycphp-talk] filewhatevertime for Windows folder
pyurt
pyurt at yahoo.com
Mon Jun 18 15:24:43 EDT 2007
David
Can you provide a little more detail.
How are you testing file time?
What OS?
Are you getting increasing times from the files with just the wrong time or
complete random values?
Paul
The most accurate credible, & timely website directory on the web:
mastermoz.com
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of David Krings
Sent: Monday, June 18, 2007 8:12 AM
To: NYPHP Talk
Subject: [nycphp-talk] filewhatevertime for Windows folder
Hi!
I want to do some housekeeping and wipe a bunch of folders of a drive
that were not used in the past 24 hours. I get the current timestamp,
subtract the seconds for a day, and then use fileatime of the folder to
make a determination.
To my surprise, the fileatime appears to be always more recent than the
timestamp from 24 hours ago, which means that none of the folders get
whacked, although they are four of five days old.
Is it better to use filemtime? Or something totally different? The
script will run exclusively against a file server running Windows, which
probably makes a difference.
Any advice? I really don't want to track file access of my system in a
database table or such.
David
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
More information about the talk
mailing list