Implement getAllFilesInDirectory in FileManager.