diff --git a/moonraker/components/file_manager/file_manager.py b/moonraker/components/file_manager/file_manager.py index af20eef..82f72ed 100644 --- a/moonraker/components/file_manager/file_manager.py +++ b/moonraker/components/file_manager/file_manager.py @@ -252,8 +252,8 @@ class FileManager: check_passed = False return check_passed - def get_sd_directory(self) -> str: - return self.file_paths.get('gcodes', "") + def get_directory(self, root: str = "gcodes") -> str: + return self.file_paths.get(root, "") def get_registered_dirs(self) -> List[str]: return list(self.file_paths.keys())