Exit the current folder when not existing in the server any more (2)
[pub/Android/ownCloud.git] / src / com / owncloud / android / operations / SynchronizeFolderOperation.java
index 7f22bb7..3c9c654 100644 (file)
@@ -297,7 +297,7 @@ public class SynchronizeFolderOperation extends RemoteOperation {
                     OCFile dir = mStorageManager.getFileByPath(mRemotePath);
                     if (dir != null) {
                         String currentSavePath = FileStorageUtils.getSavePath(mAccount.name);
-                        mStorageManager.removeFile(dir, (dir.isDown() && dir.getStoragePath().startsWith(currentSavePath)));
+                        mStorageManager.removeDirectory(dir, true, (dir.isDown() && dir.getStoragePath().startsWith(currentSavePath)));
                     }
                 }
                 result = new RemoteOperationResult(false, status, query.getResponseHeaders());