We can have a file/dir removed between fs::read_dir and dir_entry_is_key looks at its metadata which causes a spurious error. Obviously list will always return a set that may be bogus by the time its used, but that should be pretty clear from the API, the call shouldn't fail, however (and its probably okay that its internally-inconsistent).
We can have a file/dir removed between
fs::read_diranddir_entry_is_keylooks at its metadata which causes a spurious error. Obviouslylistwill always return a set that may be bogus by the time its used, but that should be pretty clear from the API, the call shouldn't fail, however (and its probably okay that its internally-inconsistent).