Including files in system.DocumentsDirectory when building for device

I am making an interactive book app that will download books and store them in the system.DocumentsDirectory. However, the app will also come with 1 book in the system upon download of the app.

So, how can I make sure that the files I have in my Documents directory actually get included when I build the app for either Xcode simulator or Device ? I have tried creating a Documents directory in the source-folder, and there is also a Document directory in the sandbox folder for the Corona simulator. But when I create the build for Xcode, the app has no data to load - and I must assume that means the files have not been included in the build.

Also, I was planning to create directories for each downloaded book, but just read that Corona can’t create directories. Does that mean that I really must ensure that there are no duplicate filenames downloaded, and store them ALL in the same directory ? If so, I would consider this a major flaw, and something that should be added to Corona ASAP.

Hope someone can be of assistance.

-mortenft [import]uid: 75621 topic_id: 14231 reply_id: 314231[/import]

Hope this link will help…
http://developer.anscamobile.com/forum/2010/12/27/auto-populate-documents-directory-build-time

and I consider it really unfortunate that we can’t create folders in documents dir and I can’t imagine why that is.

If it’s some silly Apple rule, I wish Ansca would let us take our changes with Apple and get rejected rather than trying to enforce Apple’s policies in our dev tool [import]uid: 6175 topic_id: 14231 reply_id: 52823[/import]