[DOM-59086] Fix uploading Folder to Dataset on Windows #207
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Link to JIRA
DOM-59086
What issue does this pull request solve?
On Windows machines, filepaths contain
\
separators whereas the upload endpoint expects Unix-style/
separators. This results in files not being uploaded properly on Windows. This is fixed for upload files (PR: #203). But the issue remains for uploading folders.What is the solution?
Replace Windows-style separators with Unix-style ones when uploading content from a folder.
Testing
Created unit test and manual test for uploading a non-empty folder on a Windows machine to a Dataset.
Pull Request Reminders