diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e4feffed..a41dda967 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,9 @@ All notable changes to Bambuddy will be documented in this file. - Bulk delete for multiple files at once ### Fixes +- **P2S Empty Archive Tiles** - Fixed FTP file search for printers without SD card (Issue #146): + - Added root folder `/` to search paths when looking for 3MF files + - Printers without SD card store files in root instead of `/cache` - **Empty AMS Slot Not Recognized** - Fixed bug where removed spools still appeared in Bambuddy (Issue #147): - Old AMS: Now properly applies empty values from tray data updates - New AMS (AMS 2 Pro): Now checks `tray_exist_bits` bitmask to detect and clear empty slots diff --git a/backend/app/main.py b/backend/app/main.py index 7d1cee863..719402212 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -720,7 +720,7 @@ async def on_print_start(printer_id: int, data: dict): if not downloaded_filename and (filename or subtask_name): search_term = (subtask_name or filename).lower().replace(".gcode", "").replace(".3mf", "") logger.info(f"Direct FTP download failed, searching directories for '{search_term}'") - search_dirs = ["/cache", "/model", "/data", "/data/Metadata"] + search_dirs = ["/cache", "/model", "/data", "/data/Metadata", "/"] for search_dir in search_dirs: if downloaded_filename: break diff --git a/backend/app/services/bambu_ftp.py b/backend/app/services/bambu_ftp.py index af8a92824..f4832a158 100644 --- a/backend/app/services/bambu_ftp.py +++ b/backend/app/services/bambu_ftp.py @@ -323,7 +323,7 @@ class BambuFTPClient: # Calculate used space by listing root directories try: total_used = 0 - dirs_to_scan = ["/cache", "/timelapse", "/model", "/data", "/data/Metadata"] + dirs_to_scan = ["/cache", "/timelapse", "/model", "/data", "/data/Metadata", "/"] for dir_path in dirs_to_scan: try: