iCloud file sync

So I have written this simple app that lets a user open a folder, and then my app allows the user to create subdirectories and text files in this folder. I am using NSFileCoordinator to coordinate.

Now, when the folder the user opens is on iCloud Drive (in particular, in my Documents folder), the text files that I create on my Mac are not visible on my iPad in my App. To make them visible, I need to open the Files App, navigate to the folder that contains the text file, and then the Files App downloads these text files, which become then also visible in my App.

On the other hand, when I create text files on the iPad, they are immediately visible on the Mac.

There is no such problem with the subdirectories.

Is this a known behaviour? Can it somehow be fixed?
iCloud file sync
 
 
Q