Skip to content

Temp_cleaner - Gui

Temp_cleaner - Gui

# --- Logic Helpers --- def get_temp_dirs(self): """Returns a list of temp directories based on the OS.""" system = platform.system() dirs = []

Would you like me to provide:

self.scan_btn = ctk.CTkButton(self.btn_frame, text="Scan Files", command=self.start_scan_thread) self.scan_btn.grid(row=0, column=0, padx=5, sticky="ew") temp_cleaner gui

# Walk the directory tree for root, dirs, files in os.walk(directory): for file in files: file_path = os.path.join(root, file) try: # We attempt to get size to verify access size = os.path.getsize(file_path) total_size += size self.found_files.append(file_path) except Exception: # Skip files we can't access pass # --- Logic Helpers --- def get_temp_dirs(self): """Returns

for directory in dirs: if not os.path.exists(directory): continue temp_cleaner gui