Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Unavailable network drives in CGI scripts

by JediWizard (Deacon)
on Dec 13, 2006 at 17:01 UTC ( #589616=note: print w/replies, xml ) Need Help??


in reply to Re^2: Unavailable network drives in CGI scripts
in thread Unavailable network drives in CGI scripts

Try adding something like this:

if(-d 'w:\'){ print "w:\\ is a directory\n"; if(-R 'w:\'){ print "w:\\ is readable\n"; }else{ print "w:\\ is not readbable\n"; } }else{ print "w:\\ is not a directory\n"; }

They say that time changes things, but you actually have to change them yourself.

—Andy Warhol

Replies are listed 'Best First'.
Re^4: Unavailable network drives in CGI scripts
by Sprad (Hermit) on Dec 13, 2006 at 17:04 UTC
    I tried it with 'w:', 'w:\' and 'w:/'. In all three cases, it says it's not a directory.

    ---
    A fair fight is a sign of poor planning.

      Are you quite sure that windows agrees that the drive designator is a directory?
        I tried these:
        C:\> perl -e "print 1 if (-d \"w:\")" C:\> perl -e "print 1 if (-R \"w:\")"
        and both printed 1.

        ---
        A fair fight is a sign of poor planning.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2021-06-19 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (93 votes). Check out past polls.

    Notices?