-
Notifications
You must be signed in to change notification settings - Fork 27
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
Implement recursive uploads #415
Implement recursive uploads #415
Conversation
@bbockelm Would you like me to look more into somehow keeping the directory structure on the server side? As of now, it only spits all of the files into the specified directory on the origin because I could not figure out how to do a client side PUT with directories. |
21cd896
to
64e4794
Compare
Marking this ready for review. Cannot create a unit test because it requires a director to be spinning so it can find the |
@joereuss12 - there are some conflicts to fix up here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved when merge conflicts are resolved
First draft of recursive uploads. This will go through a directory and upload every file to the destination. The only problem is that it will not maintain the same directory structure since I could not find a way to have PUT work with directories.
With the use of gowebdav.Mkdir() the UploadDirectory function now maintains directory structure on the server side.
Also fixes issues with progress bars for recursive uploads. It is at the same state as recursive downloads so it looks fine without debug logging but is wonky with it. Functionality should work fine.
64e4794
to
bf4ba6d
Compare
First draft of recursive uploads. This will go through a directory and upload every file to the destination. The only problem is that it will not maintain the same directory structure since I could not find a way to have PUT work with directories.