This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kle_py
Recipients kle_py
Date 2008-12-22.16:37:33
SpamBayes Score 6.392634e-06
Marked as misclassified No
Message-id <1229963854.68.0.83545145541.issue4723@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2008-12-22 16:37:34kle_pysetrecipients: + kle_py
2008-12-22 16:37:34kle_pysetmessageid: <1229963854.68.0.83545145541.issue4723@psf.upfronthosting.co.za>
2008-12-22 16:37:34kle_pylinkissue4723 messages
2008-12-22 16:37:33kle_pycreate