diff --git a/AUTHORS.md b/AUTHORS.md index c491b2bc9..1112319a7 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -174,6 +174,7 @@ date of first contribution): * [Arkadiusz Miƛkiewicz](https://github.com/arekm) * ["tempodat"](https://github.com/tempodat) * [Frederik Kemner](https://github.com/040medien) + * [Scott Martin](https://github.com/smartin015) OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by [Daid Braam](https://github.com/daid). Parts of its communication layer and diff --git a/src/octoprint/filemanager/__init__.py b/src/octoprint/filemanager/__init__.py index 804f64423..4fb373062 100644 --- a/src/octoprint/filemanager/__init__.py +++ b/src/octoprint/filemanager/__init__.py @@ -749,6 +749,7 @@ class FileManager: "path": path_in_storage, "name": name, "type": get_file_type(name), + "operation": "add", }, ) eventManager().fire(Events.UPDATED_FILES, {"type": "printables"}) @@ -786,6 +787,7 @@ class FileManager: "path": path_in_storage, "name": name, "type": get_file_type(name), + "operation": "copy", }, ) eventManager().fire(Events.UPDATED_FILES, {"type": "printables"}) @@ -820,6 +822,7 @@ class FileManager: "path": dst_path_in_storage, "name": dst_name, "type": get_file_type(dst_name), + "operation": "move", }, ) eventManager().fire(