Read and Write on smb sever through app "Files"

Hey,

so currently I am downloading and import the file I want to read from the smb server through a UIDocumentPickerViewController into the local folder of my app.

After that I am able to read this file through the FileManager


This is how I get the directory

let dir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!


and if I want to upload the same file or another file I write into the local folder, I need to manually upload the file to the smb server through the Files App.


Is there any way that I can read and write directly to the smb server?

How do I get the directory of the server? Is there a path?


Thank you for all your help.


Regards,

Tell. T.

You should better check this newer thread if you are writing an app for iOS:

Access Windows/Mac Shared Folder Locally With smb from iOS

This doesn't help me. I need to have a solution for 'iOS' to get a path from the server I have connected in the files app.

This is my own thread but this doesn't help.

Have you read your own thread carefully?

You may need to use your own SMB client.

Read and Write on smb sever through app "Files"
 
 
Q