Message78197
I am using python for some backup tasks, and recently i found a problem
whe i have certain directory names.
Probably the problem is only in windows, however i would like You to know.
I verified the same behaviour in (WindowsXP, spanish, SP3) using Python
2.5.2 and also in 2.6.1 (installers from Python.org).
In my case i have directory names, beginning with year/month numbers.
Aparrently python is confusing something, so os.path.basename is not
working:
dd = 'C:\downloads\hacking\0812logcompress'
>>> os.path.basename(dd)
'hacking\x00812logcompress'
>>> dd = 'C:\downloads\hacking\logcompress'
>>> os.path.basename(dd)
'logcompress' |
|
Date |
User |
Action |
Args |
2008-12-22 16:37:34 | kle_py | set | recipients:
+ kle_py |
2008-12-22 16:37:34 | kle_py | set | messageid: <1229963854.68.0.83545145541.issue4723@psf.upfronthosting.co.za> |
2008-12-22 16:37:34 | kle_py | link | issue4723 messages |
2008-12-22 16:37:33 | kle_py | create | |
|