Files not showing up in Documents

Beginner Question: I have saved a couple of documents at FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) I confirmed using fm.contentsOfDirectory(at: path, includingPropertiesForKeys: nil) that the files do exist.

How can I find them on my iPhone via the UI? They do not seem to show-up in the Document application. I like to share a couple of them manually with other devices.

Thanks so much

DJ

Years ago I had a similar issue when I saved documents on a device where I hadn't ever saved a document on that device. The workaround was to create and save a document in one of Apple's iWork apps: Pages or Numbers. After doing that the documents I saved in the app I was developing appeared in the document list.

I found the root cause myself: I created the keys UIFileSharingEnabled and LSSupportsOpeningDocumentsInPlace in Info.plist but did leave the value at "NO". The moment I switched it to "YES" the folder with all my files showed up.

Files not showing up in Documents
 
 
Q