RE: Space left on device

2006-01-16 Thread Tim Golden
[sir_alex] | Is there any function to see how much space is left on a device (such | as a usb key)? I'm trying to fill in an mp3 reader in a little script, | and this information could be very useful! Thanks! If you're talking Win32, have a look at win32file.GetDiskFreeSpace from the pywin32 exte

Re: Space left on device

2006-01-16 Thread Jean-Paul Calderone
On 16 Jan 2006 07:52:46 -0800, sir_alex <[EMAIL PROTECTED]> wrote: >Is there any function to see how much space is left on a device (such >as a usb key)? I'm trying to fill in an mp3 reader in a little script, >and this information could be very useful! Thanks! If you are on a platform with statvf

Re: Space left on device

2006-01-16 Thread rbt
sir_alex wrote: > Is there any function to see how much space is left on a device (such > as a usb key)? I'm trying to fill in an mp3 reader in a little script, > and this information could be very useful! Thanks! > On windows with the win32 extensions, you might try this: # Get hard drive info