Discussion:
[Tutor] win32file module documentation
Michael Long
2003-07-25 20:48:01 UTC
Permalink
I would like to use win32file.GetDiskFreeSpace() but do not seem to be
able find any documention on this module. I do not have win32file.py
installed on my machine only win32file.pyd. Is the source available or
at least some documentation explaining input and return values?

Thanks,
Mike
Lloyd Kvam
2003-07-26 19:36:44 UTC
Permalink
.pyd files are DLL's for Python and probably written in C.

On WinNT, I am using the ActiveState Python distribution. The Help
(Help/Python Manuals/Contents/Python On Windows Extensions\
/PythonWin32Extensions Help/Modules/win32file)
showed this:

win32file.GetDiskFreeSpace
(int, int, int, int) = GetDiskFreeSpace(rootPathName)

Determines the free space on a device.


Parameters

rootPathName : PyUnicode

address of root path

Return Value
The result is a tuple of integers representing (sectors per cluster,
bytes per sector, number of free clusters, total number of clusters)
Post by Michael Long
I would like to use win32file.GetDiskFreeSpace() but do not seem to be
able find any documention on this module. I do not have win32file.py
installed on my machine only win32file.pyd. Is the source available or
at least some documentation explaining input and return values?
Thanks,
Mike
_______________________________________________
http://mail.python.org/mailman/listinfo/tutor
--
Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358

voice: 603-443-6155
fax: 801-459-9582
Michael Long
2003-07-26 20:59:01 UTC
Permalink
Thanks for the excellent explanation. This python thingy sure is making
my job much easier...
Post by Lloyd Kvam
.pyd files are DLL's for Python and probably written in C.
On WinNT, I am using the ActiveState Python distribution. The Help
(Help/Python Manuals/Contents/Python On Windows Extensions\
/PythonWin32Extensions Help/Modules/win32file)
<snip>

Loading...