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

Implementation of file operations in public folder shares #877

Merged
merged 10 commits into from
Jun 25, 2020
Merged

Implementation of file operations in public folder shares #877

merged 10 commits into from
Jun 25, 2020

Conversation

PVince81
Copy link
Contributor

This is a cleaned up version of #872 and #822.

This PR implements the following file operations for public folder shares:

  • upload file
  • download file
  • create folder
  • delete resource
  • move/rename resource

Please note that public file shares (sharing a single file by link) does not work here. Further work on single file shares will be done in #872.

@labkode as requested in #822 the logic is now going through the gateway.

@butonic @refs FYI

refs and others added 10 commits June 24, 2020 13:57
inline return

working upload

spare a few allocations

provide missing parameter on InitiateUpload

single file publicly shared download working

filename on single shared file

apply @PVince81 patch

take into account depth

improve base logic

resolve append not assigned to same destination variable

disable gocritic for long ifElse chains
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Move all path translation logic into a single private method to make it
easier to reuse.
Whenever the actual storage operation on the gateway fails, return a
response to the caller including the error.
Remove code for non-working single file share implementation
Copy link
Member

@labkode labkode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very neat code

@labkode labkode merged commit cb3229e into cs3org:master Jun 25, 2020
This was referenced Jun 25, 2020
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

Successfully merging this pull request may close these issues.

4 participants