
Fixes #9277: On android parent directories are not accessible, so if opendir fails and the pattern is just the directory name without any pattern (e.g. stat tells the full path is a directory) directly open it and set the pattern to '*'
Fixes #9277: On android parent directories are not accessible, so if opendir fails and the pattern is just the directory name without any pattern (e.g. stat tells the full path is a directory) directly open it and set the pattern to '*'