problem with win32file.RemoveDirectory

Christos TZOTZIOY Georgiou tzot at sil-tec.gr
Fri Dec 10 12:43:58 EST 2004


On Wed, 08 Dec 2004 14:39:57 +0100, rumours say that me
<fwdtome at gmx.net> might have written:

[python2.4 + pythonwin 2.03 on Win98]

>The command i. e. 'win32file.RemoveDirectory("C:\\Python 2.4\\folder")' 
>causes the error message:
>
>Traceback (most recent call last):
>   File "C:\Python24\remove.py", line 2, in ?
>     win32file.RemoveDirectory('C:\\Python24\\folder')
>error: (120, 'RemoveDirectoryW', 'This function is only valid in Win32 
>mode.')
>
>The new documentation tells me that RemoveDirectory "is implemented 
>using RemoveDirectoryW."
>Does that mean a "NT/2000 Unicode specific version" and the 
>impossibility using this function on Win98?

AFAIK yes.  The .*W versions of functions were only stubs in the Win9x
family.  You can see if there is a RemoveDirectoryA though; that would
be usable.
-- 
TZOTZIOY, I speak England very best,
"Tssss!" --Brad Pitt as Achilles in unprecedented Ancient Greek



More information about the Python-list mailing list