From 773aa2376b5f82a60e368e85133e8e813d1cfbc6 Mon Sep 17 00:00:00 2001 From: Weronika Sosnowska Date: Thu, 12 Mar 2026 17:39:07 +0100 Subject: [PATCH] fix: download content from datalinks with nested folders [PLAT-4489] --- .../io/seqera/tower/cli/commands/data/links/DownloadCmd.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/seqera/tower/cli/commands/data/links/DownloadCmd.java b/src/main/java/io/seqera/tower/cli/commands/data/links/DownloadCmd.java index 5b41a4f9..09a35b2e 100644 --- a/src/main/java/io/seqera/tower/cli/commands/data/links/DownloadCmd.java +++ b/src/main/java/io/seqera/tower/cli/commands/data/links/DownloadCmd.java @@ -88,8 +88,9 @@ protected Response exec() throws ApiException, IOException, InterruptedException pathInfo.add(new DataLinkFileTransferResult.SimplePathInfo(DataLinkItemType.FILE, path, 1)); } else { - // Download each file for that prefix + // Download each file for that prefix (skip folder entries which end with '/') for (DataLinkSimpleItem item : browseTreeResponse.getItems()) { + if (item.getPath().endsWith("/")) continue; Path targetPath = outputDir == null ? Paths.get(item.getPath())