소스 검색

return false if remove failed

if OCFile is null --> cannot delete ==> return false.
LukeOwncloud 10 년 전
부모
커밋
a82ab8e50f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/com/owncloud/android/datamodel/FileDataStorageManager.java

+ 2 - 2
src/com/owncloud/android/datamodel/FileDataStorageManager.java

@@ -443,7 +443,7 @@ public class FileDataStorageManager {
 
 
     public boolean removeFile(OCFile file, boolean removeDBData, boolean removeLocalCopy) {
-        boolean success = true;
+        boolean success = false;
         if (file != null) {
             if (file.isFolder()) {
                 success = removeFolder(file, removeDBData, removeLocalCopy);
@@ -491,7 +491,7 @@ public class FileDataStorageManager {
 
 
     public boolean removeFolder(OCFile folder, boolean removeDBData, boolean removeLocalContent) {
-        boolean success = true;
+        boolean success = false;
         if (folder != null && folder.isFolder()) {
             if (removeDBData && folder.getFileId() != -1) {
                 success = removeFolderInDb(folder);