Its possible FolderScan may erroneously return a folder with a file like name (/somefolder.something/) instead of only files. To be verified.