Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: windows folder permission

by sundialsvc4 (Abbot)
on Oct 11, 2010 at 14:40 UTC ( [id://864624]=note: print w/replies, xml ) Need Help??


in reply to windows folder permission

Probably...

In most cases, I just “try it and see.”   If you want to see if the current-user can create a file somewhere ... try to do it.   Using a “junk” filename, try to create it (using some system-command like e.g. touch, in a qx// block), and then immediately remove it (same way).   Wrap the whole thing in an eval block.   If an error is thrown (“$@” is non-blank), you know it didn’t work.   Yeah, it’s a hack, but it works reliably when a lot of other things don’t.

There are so many things that can affect file-access, that it is often much more difficult to “guess,” than to simply “push on the gate and see if an alarm goes off.”

Replies are listed 'Best First'.
Re^2: windows folder permission
by BrowserUk (Patriarch) on Oct 11, 2010 at 18:30 UTC

    How does this "advice" even begin to address the OPs question; "Is there a function to ..."?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-25 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found