|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re^2: Permission denied error from dirmove function of File::Copy::Recursive.by Gulliver (Monk) |
| on Jul 25, 2011 at 17:46 UTC ( [id://916569]=note: print w/replies, xml ) | Need Help?? |
|
So instead of moving the directories I could copy them and then delete each file one at a time. Any file that can't be deleted I could use CreateFile to mark it to be deleted when closed. Your link led me to GetSecurityInfo which can be used to get security information about a directory. If a delete directory failed I could get information about who has it open. It doesn't look like CreateFile will let me mark a directory for deletion. But I think I'm getting in a little over my head now. From Creating and Deleting Directories:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||