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

SourceForge.net noreply at sourceforge.net
Sat Sep 20 11:54:32 EDT 2003


Bugs item #682813, was opened at 2003-02-08 11:23
Message generated for change (Comment added) made by loewis
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: Closed
>Resolution: Fixed
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: Martin v. Löwis (loewis)
Date: 2003-09-20 17:54

Message:
Logged In: YES 
user_id=21627

Fixed with said patch for 2.4.

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

Comment By: Michael Stone (mbrierst)
Date: 2003-03-20 23: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



More information about the Python-bugs-list mailing list