Issue 682813: dircache.listdir doesn't signal error (original) (raw)

Issue682813

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:38 admin set github: 37937
2003-02-08 10:23:12 phr create