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

The JFrog CLI cpoy move download command supports move and download the match individual paths directories and files under the directories instead of full paths directories and files under the directories. #2067

Open
sjl0825 opened this issue Jul 11, 2023 · 4 comments
Labels
feature request New feature or request

Comments

@sjl0825
Copy link

sjl0825 commented Jul 11, 2023

Is your feature request related to a problem? Please describe.
When running the JFrog CLI move or download command to move or download the matching directory and files in the Artifactory repository, the JFrog CLI moves and downloads the complete directory path and files in the directory by default and can't move and download the match individual paths directories and the files under the directories.
image
image

Describe the solution you'd like to see:
Expect the JFrog CLI move or download command to support moving or downloading individually matching directories and the files under the directories.
The generic type repository needs support.

Example:
Run command: jf rt mv "example-repo-local/artifactory2023/artifactory2/test*" example-repo-local/20230706/
Run result: move the test*/* directories and files to example-repo-local/20230706/

Describe alternatives you've considered
No other alternative was found.

Additional context
The JFrog CLI version is 2.36.1.

@sjl0825 sjl0825 added the feature request New feature or request label Jul 11, 2023
@RobiNino
Copy link
Contributor

Hi @sjl0825 ,
Try using Placeholders, I believe they are offering the flexibility you are after. For example:
jf rt mv "example-repo-local/artifactory2023/artifactory2/test/(*)" example-repo-local/20230706/{1}
Let me know if that works for you.

@sjl0825
Copy link
Author

sjl0825 commented Jul 13, 2023

Hi @sjl0825 , Try using Placeholders, I believe they are offering the flexibility you are after. For example: jf rt mv "example-repo-local/artifactory2023/artifactory2/test/(*)" example-repo-local/20230706/{1} Let me know if that works for you.

Thank you for your help. I solved this problem by using Placeholders. Thank you.

@sjl0825
Copy link
Author

sjl0825 commented Jul 13, 2023

Hi @sjl0825 , Try using Placeholders, I believe they are offering the flexibility you are after. For example: jf rt mv "example-repo-local/artifactory2023/artifactory2/test/(*)" example-repo-local/20230706/{1} Let me know if that works for you.

Thank you for your help. I solved this problem by using Placeholders. Thank you.

image

@sjl0825
Copy link
Author

sjl0825 commented Jul 18, 2023

Hi @sjl0825 , Try using Placeholders, I believe they are offering the flexibility you are after. For example: jf rt mv "example-repo-local/artifactory2023/artifactory2/test/(*)" example-repo-local/20230706/{1} Let me know if that works for you.

Hi @RobiNino ,
It will work properly with using Placeholder, but the customer wants to achieve it without using Placeholder, similar to the cp -R command, as follows:
jf rt mv "example-repo-local/artifactory2023/artifactory2/test/" example-repo-local/20230706/
Will move the directories and file in the “example-repo-local/artifactory2023/artifactory2/test/” to “example-repo-local/20230706/”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants