- for f in files:
- if f == file_name:
- full_path = os.path.join(root, f)
- if os.path.getsize(full_path) == file_size:
- return root
+ for other_name in files:
+ if other_name == name:
+ full_path = os.path.join(root, other_name)
+ if os.path.getsize(full_path) == size:
+ other_meta_time = extract_meta_time(full_path)
+ if meta_time == other_meta_time:
+ return root