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

Clayton Brown - Emmie Osawa claysjunkmail at
Fri Nov 30 11:05:35 CET 2001

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

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:

jdlfkjsdk_lfjsdklfj+=ljk sjflksdj fklsdjf.ext"

More information about the Python-list mailing list