[Python-bugs-list] [ python-Bugs-682813 ] dircache.listdir doesn't signal error

SourceForge.net noreply@sourceforge.net
Thu, 20 Mar 2003 14:16:42 -0800


Bugs item #682813, was opened at 2003-02-08 10:23
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=682813&group_id=5470

Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: paul rubin (phr)
Assigned to: Nobody/Anonymous (nobody)
Summary: dircache.listdir doesn't signal error

Initial Comment:
dircache.listidir('some_non_existent_directory') simply
returns an empty list.  That's inconsistent with os.listdir
which raises an OSError exception.  I think
dircache.listdir
should also raise an exception if the directory can't
be read.
At minimum, though, the difference should be documented.


----------------------------------------------------------------------

Comment By: Michael Stone (mbrierst)
Date: 2003-03-20 22:16

Message:
Logged In: YES 
user_id=670441

I agree.  I posted patch #707167 to
make it raise the error.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=682813&group_id=5470