This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author arigo
Recipients
Date 2004-12-20.14:53:02
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=4771

Actually, what about the following ?

    def exists(path):
        return os.access(path, os.F_OK)

It returns True on all existing directory entries apart from broken links and links pointing within unreadable directories.

I don't see any similar nice solution for the more recent os.path.lexists()...  There are cases where the above exists() returns True but the current lexists() returns False, which is strange because lexists() is supposed to be a more permissive version of exists().
History
Date User Action Args
2007-08-23 15:40:41adminlinkissue1068277 messages
2007-08-23 15:40:41admincreate