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

2007-08-02 Thread Alan Gauld
"Kyle Brooks" <[EMAIL PROTECTED]> wrote >> would rather have Microsoft make obfuscate things, to make it >> "easier" for >> them, than to try to understand themselves. >> > Why are you making out people and Microsoft in such a negative way? JS is reflecting a commonly held view of Microsoft and

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

2007-07-30 Thread Tiger12506
> 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

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

2007-07-28 Thread Thorsten Kampe
* Tiger12506 (Sat, 28 Jul 2007 10:33:36 -0500) > > So the better question is, does is this file a broken symbolic link or > > can os.stat() be executed on it? > > > > How do I find if it is a broken symbolic link in Windows 2000 ? > > > > os.stat(path) returns an OSError saying that there is no suc

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

2007-07-28 Thread Tiger12506
> 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 e