Library os.path.isfile(filename) - long filenames error.

Clayton Brown - Emmie Osawa claysjunkmail at yahoo.com
Fri Nov 30 05:05:35 EST 2001


I have a filename which is about 90 chars in length, three character
extension.

The python os.path.isfile() function gets a system error:
"Filename or extension is too long." when tested on this file..

Anyone come up against this or know a workaround?

I also have nasty characters like spaces, +, = and - in the filename
just for fun, so have to test filename as:

"c:\path\path\path\kddf-slgjsfdljgklsj+=lkjdlfks
jdlfkjsdk_lfjsdklfj+=ljk sjflksdj fklsdjf.ext"



More information about the Python-list mailing list