in reply to Re^2: Finding Oldest File in a Directory
in thread Finding Oldest File in a Directory
Because using File::File::name gets you a file name including the path so that -M or stat can find the file. If you don't want to recurse into directories use:
if (-d Find::File:name) { File::Find::prune = 1; return; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Finding Oldest File in a Directory
by Aristotle (Chancellor) on Oct 08, 2005 at 19:47 UTC | |
by GrandFather (Saint) on Oct 08, 2005 at 21:35 UTC | |
by Aristotle (Chancellor) on Oct 09, 2005 at 01:52 UTC |