Commit f1a81fd0 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

fs: unix: dir: Ignore ENOENT when accessing directory content

This seems to happen on some devices, with folders ending with a
trailing dot
parent 33a57a90
......@@ -82,6 +82,14 @@ void Directory::read() const
if ( errno == EACCES )
// some Android devices will list folder content, but will yield
// ENOENT when accessing those.
// See
if ( errno == ENOENT )
LOG_WARN( "Ignoring unexpected ENOENT while listing folder content." );
// Ignore EOVERFLOW since we are not (yet?) interested in the file size
if ( errno != EOVERFLOW )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment