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.

classification
Title: dircache.listdir doesn't signal error
Type: Stage:
Components: Library (Lib) Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: loewis, mbrierst, phr
Priority: normal Keywords:

Created on 2003-02-08 10:23 by phr, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Messages (3)
msg14509 - (view) Author: paul rubin (phr) Date: 2003-02-08 10:23
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.
msg14510 - (view) Author: Michael Stone (mbrierst) Date: 2003-03-20 22:16
Logged In: YES 
user_id=670441

I agree.  I posted patch #707167 to
make it raise the error.
msg14511 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-09-20 15:54
Logged In: YES 
user_id=21627

Fixed with said patch for 2.4.
History
Date User Action Args
2022-04-10 16:06:38adminsetgithub: 37937
2003-02-08 10:23:12phrcreate