exists=false, but no complaint when i open it!?

globalrev skanemupp at yahoo.se
Thu May 15 12:57:50 EDT 2008


yeah i was unclear but i tested different stuff at the same time.
and flim is not misspelled i just created it and jolted osmething down
and it became flim...

print os.path.exists('C:/Python25/myPrograms/netflix/flim.txt')
d=open('C:/Python25/myPrograms/netflix/flim.txt', 'r')
#print d.readline()
print d.read()

d.close() #not necessary?

print os.path.exists('C:\Users\saftarn\Desktop\NetFlixDataSet
\training_set')

i can read flim and exists returns true.

however
print os.path.exists('C:\Users\saftarn\Desktop\NetFlixDataSet')
returns True but
print os.path.exists('C:\Users\saftarn\Desktop\NetFlixDataSet
\training_set') returns False...

i have thourogly checked the filename to be correct and if we assume
it is what could this mean then?
i had a problem one other time when i had renamed a file but windows
didnt rename it compeltely apparently.



More information about the Python-list mailing list