Space left on device

Tim Golden tim.golden at viacom-outdoor.co.uk
Mon Jan 16 11:03:11 EST 2006


[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 extensions.

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-list mailing list