[Python-bugs-list] [Bug #110685] isdir bad behaviouring (PR#408)

noreply@sourceforge.net noreply@sourceforge.net
Thu, 7 Sep 2000 15:04:25 -0700


Bug #110685, was updated on 2000-Jul-31 14:14
Here is a current snapshot of the bug.

Project: Python
Category: None
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Summary: isdir bad behaviouring (PR#408)

Details: Jitterbug-Id: 408
Submitted-By: thomas.mangin@free.fr
Date: Sun, 23 Jul 2000 08:39:25 -0400 (EDT)
Version: 1.5.2
OS: Linux


This report is not a "Bug" report but more a library "Misbehaviouring" report.
I am concern about os.path.isdir return code. (this can probably applied to
isfile)

The return code express a boolean value : the file is a directory or not.

But I notice that if you don't have read access into the directory where the
file is stored, the function always return 0.
Or the path can refer a directory, returning 0 simply isn't right.

I beleve an exception must be raised to inform the programmer about this access
right problem and must be silently ignored.




====================================================================
Audit trail:
Mon Jul 24 18:32:17 2000	jeremy	moved from incoming to open

Follow-Ups:

Date: 2000-Sep-07 15:04
By: jhylton

Comment:
Please do triage on this bug.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=110685&group_id=5470