298
308
# We see ENOTDIR at the end of a normal directory.
299
309
# As ENOTDIR for read_dir(file) is triggered on opendir,
300
310
# we consider ENOTDIR to be 'no error'.
303
313
raise OSError(errno, strerror(errno))
308
315
if not (name[0] == c"." and (