Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: remove files from the V volume on windows

by fnicholas (Initiate)
on Aug 22, 2012 at 01:00 UTC ( #988917=note: print w/replies, xml ) Need Help??


in reply to Re: remove files from the V volume on windows
in thread remove files from the V volume on windows server 2008

What error message do you get when the unlink fails?
ERROR: The Free Size is : 2.5 GB failed on .: failed on ..: Use of uninitialized value in numeric gt (>) at diskspace.pl line 24. failed on file1.txt: No such file or directory
What output do you get if you change the unlink to:
## $^E is the extended system error message unlink $file or warn "failed on $file: $^E\n" if -M $file > 14;
ERROR: The Free Size is : 2.5 GB failed on .: Access is denied failed on ..: The system cannot find the file specified Use of uninitialized value in numeric gt (>) at diskspace.pl line 24. failed on file1.txt: The system cannot find the file specified

Replies are listed 'Best First'.
Re^3: remove files from the V volume on windows
by aitap (Curate) on Aug 22, 2012 at 07:40 UTC
    You should ignore (e.g. next if /^\.{1,2}$/) "." and ".." as they are pseudo-directories meaning "current directory" and "upper directory".
    Sorry if my advice was wrong.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2020-12-04 18:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (60 votes). Check out past polls.

    Notices?