in reply to Re: Simple Path Cleanup
in thread Simple Path Cleanup
It sounds to me (I could be misunderstanding, though) like the OP wants to avoid removing some major directory. So lets say the input path is something like
/home/whoever/tmp/foo/mydir
where mydir is a symlink to /usr/local or some such, then Path::Class's cleanup would leave it as is, and /usr/local would get removed, even though the OP checks $path !~ m#^/usr/local# (presuming appropriate permissions, of course). AFAIK, Path::Class doesn't handle symlinks, whereas Cwd's realpath would.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Simple Path Cleanup
by wesley.spikes (Initiate) on May 10, 2009 at 16:12 UTC | |
|
Re^3: Simple Path Cleanup
by Your Mother (Archbishop) on May 10, 2009 at 16:46 UTC |