Dear all,
My app writes some files to its /Documents folder.
I am using the following code:
NSData *data = [str dataUsingEncoding:NSUTF8StringEncoding];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
if (0 < [paths count])
{
NSString *documentsDirPath = [paths objectAtIndex:0];
NSString *filePath = [documentsDirPath stringByAppendingPathComponent:fileName];
NSFileManager *fileManager = [NSFileManager defaultManager];
if ([fileManager fileExistsAtPath:filePath])
{
//FILE EXISTS
.......}
else
{
//FILE DOES NOT EXIST; CREATE IT
}
The file is created and stored successfully.
However, the apps' files can be only accessed from the Xcode through "Window"->"Device and Simulators"->"Download Container".
Is it possible to access these file without the assistance of Xcode IDE? For example, the iOS "Files" application does not show them.I tried many free third party applications from Apple Store but without success.
Regards,
Kostas
Do you want to save files to Files App ?
https://stackoverflow.com/questions/50128462/save-document-to-files-app-in-swift