Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-08-02 Thread Kent Johnson
Tiger12506 wrote: > I apologize for my bringing up these beliefs on this list. They are better > placed in a blog somewhere, or more efficiently, in a zip file of ASCII text > as small and as neat as possible. Yes, thanks. Could we stop the Microsoft bashing - or whatever you want to call it -

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-08-02 Thread Tiger12506
>> Granted, all of these are just visual sugar and are completely worthless. >> But they have provided Microsoft with much money because more useless >> people >> can use computers. It is because these people do not wish to learn, do >> not >> have the capacity, or just plain would rather pay thr

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-08-02 Thread Kyle Brooks
Hi. > Granted, all of these are just visual sugar and are completely worthless. > But they have provided Microsoft with much money because more useless people > can use computers. It is because these people do not wish to learn, do not > have the capacity, or just plain would rather pay through th

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-08-02 Thread Tiger12506
> I have never understood Microsoft changing things from one release to > another. In the beginning extensions were IIRC always visible. > > Every time I configure a computer I have to spend a lot of time undoing > the initial settings so my users can get their work done! Even though I completely

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-08-02 Thread Bob Gailer
Iyer wrote: > So, it was the extensions all the way ! Apparently the file extension > was hidden by Windows! It now works. I have never understood Microsoft changing things from one release to another. In the beginning extensions were IIRC always visible. Every time I configure a computer I hav

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-08-01 Thread Iyer
Is there any chance the file has an extension that Windows is hiding? Can you get True for other files in the folder? So, it was the extensions all the way ! Apparently the file extension was hidden by Windows! It now works. Thank you all for your suggestions and help. -iyer

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-07-30 Thread Bob Gailer
Iyer wrote: > > > Just to check, try to do away with the backslashes. Windows will > accept > a path with forward slashes just as well: > > os.path.exists("c:/winnt/file_name") > > Nope, even, with the use of forward slashes in the path, it still > returns false > > What am I doing

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-07-30 Thread John Fouhy
On 31/07/07, Iyer <[EMAIL PROTECTED]> wrote: > os.path.exists("c:/winnt/file_name") > > Nope, even, with the use of forward slashes in the path, it still returns > false > > What am I doing wrong here ? Type 'os.listdir("c:/winnt")' and see what it gives you. I haven't looked at the code, but I

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-07-30 Thread Iyer
Just to check, try to do away with the backslashes. Windows will accept a path with forward slashes just as well: os.path.exists("c:/winnt/file_name") Nope, even, with the use of forward slashes in the path, it still returns false What am I doing wrong here ? This is driving me nuts!

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-07-28 Thread Hugo González Monteverde
Iyer wrote: > > Adam wrote: > > From the library documentation: > Return True if path refers to an existing path. Returns False for > broken symbolic links. On some platforms, this function may return > False if permission is not granted to execute os.stat() on the > requ

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-07-27 Thread Adam A. Zajac
> os.path.exists(path) returns false when the path actually exists! > > When I do this: > > >>> os.path.exists("c:\\winnt\\file_name") > > I get this: > >>> False > > Actually the file exists in c:\winnt, and I can confirm it exists > there, but os.path.exists isn't returning True, wh

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-07-27 Thread Iyer
Adam wrote: >From the library documentation: Return True if path refers to an existing path. Returns False for broken symbolic links. On some platforms, this function may return False if permission is not granted to execute os.stat() on the requested file, even if the path physically exists. So

[Tutor] os.path.exists(path) returns false when the path actually exists!

2007-07-27 Thread Iyer
os.path.exists(path) returns false when the path actually exists! When I do this: >>> os.path.exists("c:\\winnt\\file_name") I get this: >>> False Actually the file exists in c:\winnt, and I can confirm it exists there, but os.path.exists isn't returning True, when it should be..