Incorrect directory structure created using jfrog CLI

615 Views Asked by At

I am trying to download the entire folder (as it is with all files and subfolders) from an Artifactory repo to my local folder.

Note - I am using Artifactory Pro cloud version

This how my Artifactory local repo (generic) looks like -

enter image description here

I run the following command in jfrog CLI (used this article as refrence) -

jfrog rt download --include-dirs=true --flat=true --user=XXX --password=XXX --url=https://XXXX.jfrog.io/XXXX --recursive '/support-pack/aem-dispatcher/files/(*)' '{1}'

The files get downloaded however it results in a weird folder structure -

enter image description here

Below is a screenshot of the logs

enter image description here

Notice the additional resume folder under the resume folder. Why is this happening? I want the exact structure under files folder in Artifactory to be replicated in my local folder. Please help!

1

There are 1 best solutions below

0
Archit Arora On

The answer turned out to be much simpler than expected. All I had to do was get rid of --include-dirs=true in my command. Read this article for more info.