in reply to Re: File::Path::rmtree on UNC path (updated)
in thread File::Path::rmtree on UNC path (updated)
You are right. I can't chdir in a directory and then delete it. Which leaves me with the original problem: If I do NOT chdir into it, I get consistently the error message ... changed before chdir, expected ..., and nothing gets deleted. If I chdir into it, its content will be deleted, but the directory itself won't.
Of course I can do the following strategy:
Maybe I have to really write my own "rmtree", or - as this is going to run on Windows only - I shell out and do a system('RMDIR'...).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: File::Path::rmtree on UNC path (updated)
by swhl (Initiate) on Jun 10, 2009 at 10:01 UTC | |
by rovf (Priest) on Jun 10, 2009 at 11:40 UTC |