decorrupt_files/move_files.py
2025-09-15 19:42:18 +00:00

9 lines
250 B
Python

import os
directory = "/home/geezo/01_projects/decorrupt/motherload/scan"
contents = os.listdir(directory)
for item in contents:
if "lost" in item:
filepath = f"{directory}/{item}"
os.rename(filepath, filepath.replace(" ", "_"))