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

return false if remove failed #1028

Closed
wants to merge 1 commit into from

Conversation

LukeOwlclaw
Copy link

if OCFile is null --> cannot delete ==> return false.

if OCFile is null --> cannot delete ==> return false.
@LukeOwlclaw LukeOwlclaw mentioned this pull request Mar 18, 2016
@davivel davivel added this to the backlog milestone Apr 14, 2016
@@ -467,7 +467,7 @@ public void saveFolder(


public boolean removeFile(OCFile file, boolean removeDBData, boolean removeLocalCopy) {
boolean success = true;
boolean success = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm sorry to say this change breaks the condition in line 497 for input parameters file != null && !file.isFolder() , removeDBData == false.

I'd say the easiest way to achieve what you want is with adding an else block in line 509.

@davivel
Copy link
Contributor

davivel commented Apr 14, 2016

@LukeOwncloud , please, see my comments and make a new PR onto master branch. Thanks a lot :)

@LukeOwlclaw
Copy link
Author

Very true!

@davivel davivel removed this from the backlog milestone Aug 12, 2016
@DeepDiver1975 DeepDiver1975 deleted the LukeOwncloud-patch-remove-failed branch March 29, 2017 19:58
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.

3 participants