ITunes file sharing - how to download different folders?

I want to use the file sharing feature in my application. I want to create a photo application that has no content when the user launches it. Therefore, the user can select the image folder on his Mac or PC. After that and launching the application on his iphone or ipad, all the contents of his image folder will be available for viewing.

I think that it is possible to add only simple files to my application, and not folders with contents, right? Any ideas how I could do this?

Thanks for your time and help.

+4
source share
3 answers

You cannot upload a folder to the application.

one way to do it

create a .zip file for this folder and upload. extract this zip file from the application.

check this project, it has code to extract the zip file.

https://github.com/ZipArchive/ZipArchive

+4
source

On your Mac, rename the folder to the .pkg folder.

Now you can add folder.pkg to documents for your application using iTunes file sharing.

Once the folder.pkg file has been added, rename it to its original name.

Not sure how to do this with iTunes on PC.

+14
source

I found that with iTunes 12 and iOS8, I can now add ADD folders to the Documents application folder using iTunes file sharing. Previously, it was possible to add only individual files.

+1
source

Source: https://habr.com/ru/post/1344250/


All Articles