marinofaggiana 3 năm trước cách đây
mục cha
commit
781706abd9
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      iOSClient/Data/NCManageDatabase.swift

+ 5 - 1
iOSClient/Data/NCManageDatabase.swift

@@ -411,7 +411,11 @@ class NCManageDatabase: NSObject {
         }
         
         if result.autoUploadDirectory.count > 0 {
-            return result.autoUploadDirectory
+            if result.autoUploadDirectory.contains("/webdav") {
+                return NCUtilityFileSystem.shared.getHomeServer(account: account)
+            } else {
+                return result.autoUploadDirectory
+            }
         } else {
             return NCUtilityFileSystem.shared.getHomeServer(account: account)
         }