0

I tried tagging the folder in jFrog which recursively tagged all the files, but would like to exclude the folder from getting tagged.

is there a way to tag just the files inside a folder using the jFrog rest API?

curl -s -u username:password -X POST https://server:port/api/storage/pathtoFolder?properties=key=value
Ramana V V K
  • 1,245
  • 15
  • 24
abhishek phukan
  • 751
  • 1
  • 5
  • 16

1 Answers1

0

This can be done by using JFrog CLI (free tool by JFrog):

https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory#CLIforJFrogArtifactory-SettingPropertiesonFiles

What you can do is to use wildcards on the folder level and that will do the trick :)

Ariel
  • 3,406
  • 14
  • 17
  • Thanks. But I wanted to do it via the rest api – abhishek phukan Apr 30 '18 at 09:35
  • For doing it via the rest api you will need to have a file list of the folder and then run on each item. Another option is set it on the folder recursively, as you did, and delete the property from the folder itself. I don't really like the second approach as in case you already have a property with that key on the folder it will override it. – Ariel Apr 30 '18 at 10:19