Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
Labels
bug Something isn't working

Comments

@RoiNiv23
Copy link

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

  1. 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

@RoiNiv23 RoiNiv23 added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant