around this issue Don't try to get to the documents directory that way. It won't work. Use this code fragment instead: NSString *docsPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
Any of those help No, you cannot have a shared documents directory, but you can have a shared folder in which you can use as your documents directory. When you create an app group Create an identifier for each of your apps in the app group. Then you can use the file manager to get the URL for the directory you want with the given group identifier.
let url = NSFileManager.defaultManager().containerURLForSecurityApplicationGroupIdentifier("group.com.MTC.DataSender")!
Need to move 500 specific files from one share directory to another
I hope this helps . I have a directory that has 50,000 files; I only need to move a subset of these files that I have in a text file. I am looking for a script/way to move these files out. , Assuming you have GNU coreutils, you can use
xargs -a tomove.txt -d '\n' mv -t /path/to/destination