Marino Faggiana 6 ani în urmă
părinte
comite
05bbf9ad42
2 a modificat fișierele cu 1 adăugiri și 4 ștergeri
  1. 0 1
      iOSClient/Networking/OCNetworking.m
  2. 1 3
      iOSClient/Text/NCText.swift

+ 0 - 1
iOSClient/Networking/OCNetworking.m

@@ -409,7 +409,6 @@
                     
                     NSString *autoUploadFileName = [[NCManageDatabase sharedInstance] getAccountAutoUploadFileName];
                     NSString *autoUploadDirectory = [[NCManageDatabase sharedInstance] getAccountAutoUploadDirectory:_activeUrl];
-                    NSString *directoryUser = [CCUtility getDirectoryActiveUser:_activeUser activeUrl:_activeUrl];
                     
                     NSString *serverUrlFolder;
                     NSString *directoryIDFolder;

+ 1 - 3
iOSClient/Text/NCText.swift

@@ -151,15 +151,13 @@ class NCText: UIViewController, UITextViewDelegate {
             if textView.text != loadText {
             
                 let data = textView.text.data(using: .utf8)
-                let success = FileManager.default.createFile(atPath: "\(self.appDelegate.directoryUser!)/\(metadata.fileNameView)", contents: data, attributes: nil)
-            
+                let success = FileManager.default.createFile(atPath: CCUtility.getDirectoryProviderStorageIconFileID(metadata.fileID, fileNameView: metadata.fileNameView), contents: data, attributes: nil)
                 if success {
                 
                     appDelegate.activeMain.clearDateReadDataSource(nil)
                 
                     self.dismiss(animated: true, completion: {
                         
-                        metadata.path = self.appDelegate.directoryUser!
                         metadata.session = k_upload_session
                         metadata.sessionSelector = selectorUploadFile
                         metadata.status = Int(k_metadataStatusWaitUpload)