| import os | |
| # Nama file yang ingin dicari | |
| target_file = "terratopia-clearvae-baked.safetensors" | |
| # Direktori folder input | |
| folder_path = "/kaggle/working" | |
| # Fungsi untuk mencari file | |
| def find_file(target_file, folder_path): | |
| for root, dirs, files in os.walk(folder_path): | |
| for file in files: | |
| if file == target_file: | |
| return os.path.join(root, file) | |
| # Mencari file dan menampilkan full path jika ditemukan | |
| file_path = find_file(target_file, folder_path) | |
| if file_path: | |
| print("File ditemukan di:", file_path) | |
| else: | |
| print("File tidak ditemukan.") | |