Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by flexvault (Monsignor)
on Jul 23, 2011 at 12:46 UTC ( [id://916309]=note: print w/replies, xml ) Need Help??


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

I don't usually comment on windows specific problems, but this problem could exist in any computer environment as well.

I suspect that you have some 'daemon process' accessing the files for indexing purposes, and if you could find how the daemon locks the files, then duplicate that process. This would normally happen very fast, so I doubt a 'human' user is your problem.

Some possible solutions that might work:

  • If your operation is not 24x7, then run this script off-shift in single user mode.
  • Can you change the owner of the directory/files to be accessed only by your script
  • Can you mount a separate drive and copy the directory. Obviously this drive needs to be restricted from your users.

This is a common problem in multi-user, multi-tasking operating systems, so there has to be a way to fix this. Perl is not the problem, but perl has tools to access your system, and invoke some operating specify solution.

Good Luck

"Well done is better than well said." - Benjamin Franklin

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

Log In?
Username:
Password:

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

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





    Results (65 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.