From 4f954372c4e40faa321cb5ace19058071f9874fe Mon Sep 17 00:00:00 2001 From: shmuel44 Date: Wed, 7 Jan 2026 13:01:57 +0200 Subject: [PATCH] fix path --- demisto_sdk/commands/download/downloader.py | 2 +- demisto_sdk/commands/upload/uploader.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/demisto_sdk/commands/download/downloader.py b/demisto_sdk/commands/download/downloader.py index 00ddb5e3a2f..47500fdcf9b 100644 --- a/demisto_sdk/commands/download/downloader.py +++ b/demisto_sdk/commands/download/downloader.py @@ -1007,7 +1007,7 @@ def verify_output_path(self, output_path: Path) -> bool: ) return False - elif not output_path.parent.name == "Packs": + elif not output_path.parent.name in ("Packs", "SystemPacks"): logger.error( f"Error: Path '{output_path.absolute()}' is invalid.\n" f"The provided output path for the download must be inside a 'Packs' folder. e.g., 'Packs/MyPack'." diff --git a/demisto_sdk/commands/upload/uploader.py b/demisto_sdk/commands/upload/uploader.py index e787412ac1a..7396e9ca5be 100644 --- a/demisto_sdk/commands/upload/uploader.py +++ b/demisto_sdk/commands/upload/uploader.py @@ -543,10 +543,10 @@ def __init__( self.marketplace = marketplace DETACH_ITEM_TYPE_TO_ENDPOINT: dict = { - "IncidentTypes": "/incidenttype/detach/:id/", - "Layouts": "/layout/:id/detach/", - "Playbooks": "/playbook/detach/:id/", - "Scripts": "/automation/detach/:id/", + "IncidentTypes": "/incidenttype/detach/:id", + "Layouts": "/layout/:id/detach", + "Playbooks": "/playbook/detach/:id", + "Scripts": "/automation/detach/:id", } VALID_FILES_FOR_DETACH = ["Playbooks", "Scripts", "IncidentTypes", "Layouts"]