Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Permission denied error from dirmove function of File::Copy::Recursive.

by roboticus (Chancellor)
on Jul 22, 2011 at 19:17 UTC ( [id://916199]=note: print w/replies, xml ) Need Help??


in reply to Permission denied error from dirmove function of File::Copy::Recursive.

Gulliver:

I'd suggest making a list of the operations that fail, so when you get to the end of your script, you can periodically retry the items on the list until they either succeed, or until your script decided it has tried enough times. Then report the problems at the end for a human to fix.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: Permission denied error from dirmove function of File::Copy::Recursive.

Replies are listed 'Best First'.
Re^2: Permission denied error from dirmove function of File::Copy::Recursive.
by Gulliver (Monk) on Jul 25, 2011 at 17:05 UTC

    Each step in this application builds on previous steps so your suggestion doesn't really apply. It would be like building a house without all the pieces and going back later to fix things. Plus there are up to 250,000 files in up to 5000 directories involved.

    What I have already done is make the script look for an existing download folder and process any files there.

    In the problem I stated of people browsing the directory, if someone consistantly does this after running the script then the script will consistantly fail which would be an embarassment. If I can send a more descriptive error message than "permission denied" then hopefully I can change this behavior or find out if there is something else to blame as other responders have suggested.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://916199]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2025-11-17 01:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (72 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.