ios - NSMetadataQuery returns files which apparently don't exist -


i've start integrating icloud functionality application. have 2 test spreadsheets worked correctly when uploaded icloud through application (for test purposes). when drop more spreadsheets appropriate icloud application folder appears in mac's finder window, application sees files hidden , can't read.

can tell me why these files being saved hidden files? how can prevent happening. app needs ability read csv files placed icloud application folder of apple devices (or windows using icloud windows software).

after no apple documentation managed find forums explain these hidden files mean hasn't yet been downloaded. guess metadata files downloaded first show exist, upon request files downloaded.

in code, if file hidden simple make call begin download:

bool downloading = [[nsfilemanager defaultmanager] startdownloadingubiquitousitematurl:[result valueforattribute:nsmetadataitemurlkey] error:&error];

this start downloading file nsmetadataquery returned , return boolean value if starting successful. @ point pop alert let user know downloading , try again in few seconds (small files general takes few). in future may try , implement download progress or wait screen, job.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -