← 返回 anthropic 的题目列表Find Duplicate Files in a File System
类型:online_judge
You are required to write a program to find duplicate files in a file system. Use the os.walk function from Python's os library to traverse the file system, focusing on finding files with identical contents. For simplification, assume the file names and paths are unique. Output a list of paths of duplicate files.
Example
Input
/test_dir