iterate through files manually instead of ls command in FileManager