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

Try to add properties to directories #1028

Open
hypolas opened this issue Oct 4, 2024 · 0 comments
Open

Try to add properties to directories #1028

hypolas opened this issue Oct 4, 2024 · 0 comments
Labels
question Further information is requested

Comments

@hypolas
Copy link

hypolas commented Oct 4, 2024

Hello,

I'm trying to add properties to the folder but it doesn't work.

params := services.NewUploadParams()
params.Flat = false
params.Recursive = true
params.IncludeDirs = true
params.SetProps("test=test")

I using github.com/jfrog/jfrog-client-go v1.46.2 client.

Now, I just try with 1.47.1 but same problem occure.

I tried to find an alternative and I seen you own code exemple:

searchParams = services.NewSearchParams()
searchParams.Recursive = true
searchParams.IncludeDirs = false

resultItems, err = rtManager.SearchFiles(searchParams)
if err != nil {
    return err
}
defer reader.Close()
propsParams = services.NewPropsParams()
propsParams.Pattern = "repo/*/*.zip"
propsParams.Reader = reader
// Filter the files by properties.
propsParams.Props = "key=value"

rtManager.DeleteProps(propsParams)

But the struct .Pattern isn't present.

Could you help me ?

@hypolas hypolas added the question Further information is requested label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant