more useful options | |
PerlMonks |
Re: Get the available space in a partition using as input a directory?by Not_a_Number (Prior) |
on Jul 12, 2013 at 19:10 UTC ( [id://1044053]=note: print w/replies, xml ) | Need Help?? |
You missed this bit from the OP: This would have to work on Linux, Mac and Windows (my emphasis) Neither stat nor statvfs work on Windows. Here's a kludge to get the available space on your current Windows drive:
But that is Perl 5. I don't know if Perl 4 even provides a way to make a system call to Windows...
In Section
Seekers of Perl Wisdom
|
|