Check rights for directory before searchDir executed - better performance with private folders.
Otherwise it check every dir and every file, it it's accessible - user has rights to read it - so it took long time with big numbers of files. And it's done twice.
This request check, if folder has right to read and if not, skip it.
Check rights for directory before searchDir executed - better performance with private folders. Otherwise it check every dir and every file, it it's accessible - user has rights to read it - so it took long time with big numbers of files. And it's done twice. This request check, if folder has right to read and if not, skip it.