You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to upload a package with few directories(one of them is empty) using the flags "--include-dirs --dry-run" the package structure is created.
#2865
Open
RoiNiv23 opened this issue
Feb 10, 2025
· 0 comments
When using the CLI to upload a directory containing subdirectories, and one of the subdirectories is empty, running the upload command with both the "--include-dirs" and "--dry-run" flags will create the entire structure of the empty directory. However, if you only use the "--dry-run" flag without "--include-dirs" the empty directory structure will not be created.
Current behavior
The CLI created the entire structure of the empty directory when using the "--include-dirs" flag even if the "--dry-run" flag is used.
Reproduction steps
Locally create a structure with an empty folder, for example:
test:
new:
test1:
exmple.txt
test2:
exmple.txt
empty:
2)Run the upload command with the --dry-run flag(and see that the structure is not created in Artifactory): jf rt u "test/" <generic repo>/ --dry-run
3)Run the upload command with the --dry-run and --include-dirs flags(and see that the structure is created in Artifactory): jf rt u "test/" <generic repo>/ --dry-run --include-dirs
Expected behavior
The structure should not been created if using the --dry-run flag.
JFrog CLI version
2.73.2
Operating system type and version
mac/linux
JFrog Artifactory version
SaaS 7.106.3
JFrog Xray version
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the CLI to upload a directory containing subdirectories, and one of the subdirectories is empty, running the upload command with both the "--include-dirs" and "--dry-run" flags will create the entire structure of the empty directory. However, if you only use the "--dry-run" flag without "--include-dirs" the empty directory structure will not be created.
Current behavior
The CLI created the entire structure of the empty directory when using the "--include-dirs" flag even if the "--dry-run" flag is used.
Reproduction steps
test:
new:
test1:
exmple.txt
test2:
exmple.txt
empty:
2)Run the upload command with the --dry-run flag(and see that the structure is not created in Artifactory):
jf rt u "test/" <generic repo>/ --dry-run
3)Run the upload command with the --dry-run and --include-dirs flags(and see that the structure is created in Artifactory):
jf rt u "test/" <generic repo>/ --dry-run --include-dirs
Expected behavior
The structure should not been created if using the --dry-run flag.
JFrog CLI version
2.73.2
Operating system type and version
mac/linux
JFrog Artifactory version
SaaS 7.106.3
JFrog Xray version
No response
The text was updated successfully, but these errors were encountered: