File sizes from MSWin...

Christopher Encapera ChrisE at lantech.com
Fri Apr 26 13:50:19 EDT 2002


When I try:

>>> os.path.getsize('x:\\exchsrvr\\mdbdata\\PRIV.EDB')
1475354624
>>> 

(1,475,354,624 bytes)
The actual size is 14,360,256,512 bytes.  When I try:

>>> import win32file
>>> a = win32file.GetFileSize('X:\\exchsrvr\\mdbdata\\PRIV.EDB')
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
TypeError: The object is not a PyHANDLE object

This is the MS Exchange private information store, and ours is large (13.3
G).  Any suggestions on how to get an accurate size?  I have ActiveState
ActivePython 2.1 installed, and X: is a mapped drive to a WinNT machine from
a Win2k workstation...
Thanks in advance!

Christopher Encapera
Lantech.Com
chrise at lantech.com
502-267-4200






More information about the Python-list mailing list