-
Notifications
You must be signed in to change notification settings - Fork 17
Box support as external Storage Provider #122
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
base: master
Are you sure you want to change the base?
Conversation
Merge to beta failed, conflicted files: |
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.
Nice work!
Just a few minor suggestions
BoxFile.Info file = getBoxFileFromPath(externalFileName, isPrivate); | ||
OutputStream out = new FileOutputStream(localFile); | ||
file.getResource().download(out); | ||
out.close(); |
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.
This should be closed on finally clause or by using "try with resource".
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.
Addressed at next commit. Didn't know the "try with resource" statement.
String fileName = getFileNameFromPath(externalFileName); | ||
|
||
BoxFile.Info fileInfo = folder.uploadFile(fileStream, fileName, file.length(), null); | ||
fileStream.close(); |
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.
This should be closed on finally clause or by using "try with resource".
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.
Addressed at next commit. Didn't know the "try with resource" statement.
Cherry pick to beta failed, 0 conflicted files |
Cherry pick to beta partially success |
BETA RESET - Cherry pick to beta failed, 3 conflicted files in commit 7334f5e
|
Basic implementation of Box support as a storage provider.
Issue: 67351