Are you sure about this logic? It seems like a folder with one file will be treated like a file.