Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: directory access failure

by trantor (Chaplain)
on Jul 20, 2004 at 15:17 UTC ( #375970=note: print w/replies, xml ) Need Help??

in reply to directory access failure

The problem is that you're creating directories with:

mkdir "trip", 077;

You most likely wanted 0777, or you can omit the mask parameter completely and Perl will do the right thing for you :-)

Moreover, a quick inspection of @files revealed the other possible problem: the special directories . and .. are included in the array, and your script is trying to rename them as well. I couldn't test it on Windows (using Linux here) but it should be the same.

Update: mentioned that @files contains . and ..

Replies are listed 'Best First'.
Re^2: directory access failure
by Anonymous Monk on Jul 20, 2004 at 15:43 UTC
    You're right, I did mean to type 0777, however even without the mask I get the error.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2023-12-10 07:51 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (39 votes). Check out past polls.