Skip to content

Instantly share code, notes, and snippets.

View Harsche's full-sized avatar

Luiz Henrique Harsche Harsche

View GitHub Profile
@Harsche
Harsche / main.py
Created October 25, 2023 22:51
Delete Unity .meta files
import os
def clean_meta_files(directory):
for root, dirs, files in os.walk(directory):
for file in files:
if file.endswith('.meta'):
file_path = os.path.join(root, file)
try:
os.remove(file_path)
print(f"Deleted: {file_path}")