-
Notifications
You must be signed in to change notification settings - Fork 0
Fix/file delete #25
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: feature/storage-brokering
Are you sure you want to change the base?
Fix/file delete #25
Conversation
| @@ -129,26 +130,33 @@ def locate(self, filename) -> object: | |||
| files = response.get("children", []) or response.get("entries", []) | |||
| for f in files: | |||
| if f.get("name") == filename: | |||
| return f.get("id") | |||
|
|
|||
| self._set_file_id(f.get("file_id")) | |||
| return f.get("file_id") | |||
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.
@yvonnedejong-uk So, as I mentioned today, we shouldn't just do a "get all" of the entire directory on OneData. We should do a direct search in OneData for that file name in OneData (if possible)
As we discussed, there will not be multiple files with the same name in the same directory, so we don't need to worry about that
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.
Handing back to you
* file download function * Bring back upload file test and add find file test * Separate provisioning tests from file mgmt tests * revert unnecessary change * Update deletable file ID env name for clarity --------- Co-authored-by: marcuslowndes <marcuslowndes@yahoo.co.uk>
Testcase: Delete file function to OneData