Can you move folders in the same repository?

You can move a folder to another folder in the same repository in two ways:

 

  1. With the Artifactory UI (from version 3.4.2).

  2. With REST API.


To perform this move with the Artifactory UI, you will be required to log in, then navigate to the Artifacts tab → right click on the folder and move → In the dialog box please check the “Move to a custom path” and in the target repository just select the same repository → Move.

Also, you can use the REST API command: Move Item For example, the command should look like this:

curl -X POST -u{user}:{password} “http://{Artifactory_URL}:{Artifactory_Port}/artifactory/api/move/{Repository_name}/{Folder_name}?to=/{same repository name}/{the new name}”