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

Upload entire directory #9

Open
agiron123 opened this issue Jan 5, 2017 · 2 comments
Open

Upload entire directory #9

agiron123 opened this issue Jan 5, 2017 · 2 comments

Comments

@agiron123
Copy link

I wish to upload the contents of an entire directory to artifactory. This would be very useful for some integration tests that I am writing.

Is this possible with the existing implementation, or will I have to simply upload every file to match the directory structure?

I'd be happy to add this functionality and submit a PR if you'd like.

Cheers,
agiron123

@cgadam
Copy link
Owner

cgadam commented Jan 10, 2017

Hi @agiron123 . I don't think you can actually upload an entire folder just like that. Instead, you should probably analyze the content of the folder you want to upload an deploy the files one by one. I saw that there's also an API for uploading multiple files in one request. You can take a look at: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-BuildUpload
Regarding implementation, if you can, submit a PR! Thanks!

@agiron123
Copy link
Author

Okay great. I was able to figure out how to upload an entire directory by uploading and deploying the files one by one. I'll have a PR out later this week. Shouldn't be too hard to move the code from my project over to the library.

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

No branches or pull requests

2 participants