documents folder is empty
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
documents folder is empty
Hi All
I add a folder in the copy files pan of the standalone setting but the documents folder is empty in the device after i uploaded the app.
What I forget ?
I use LC 5.02 and xCode 4.2.1
Jean-Marc
I add a folder in the copy files pan of the standalone setting but the documents folder is empty in the device after i uploaded the app.
What I forget ?
I use LC 5.02 and xCode 4.2.1
Jean-Marc
https://alternatic.ch
Re: documents folder is empty
Hi,
probably your folder is located into the special folder "engine" (Read ONLY).
From dictionary : "engine - The folder containing the built standalone engine (i.e. the bundle). This is useful for constructing paths to resources that have been copied into the bundle at build time."
Guglielmo
probably your folder is located into the special folder "engine" (Read ONLY).
From dictionary : "engine - The folder containing the built standalone engine (i.e. the bundle). This is useful for constructing paths to resources that have been copied into the bundle at build time."
Guglielmo
Re: documents folder is empty
Hi,
Thank for your reply but for me a folder added in the copy files pan will be copied in the documents folder of the sandbox.
I'm right ?
Best regards
Jean-Marc
Thank for your reply but for me a folder added in the copy files pan will be copied in the documents folder of the sandbox.
I'm right ?
Best regards
Jean-Marc
https://alternatic.ch
Re: documents folder is empty
Bonsoir Jean-Marc,
Everything you add in the "copy files" section will be found in -> specialfolderpath("engine") on the device. No automatisms here!
You, the developer, need to take care of this, means you need to copy that folder resp. its content to -> specialfolderpath("documents")
Best
Klaus
Nojmburnod wrote:Hi,
Thank for your reply but for me a folder added in the copy files pan will be copied in the documents folder of the sandbox.
I'm right ?

Everything you add in the "copy files" section will be found in -> specialfolderpath("engine") on the device. No automatisms here!
You, the developer, need to take care of this, means you need to copy that folder resp. its content to -> specialfolderpath("documents")
Best
Klaus
Re: documents folder is empty
Hi gpb01 and Klaus,
Sorry i am wrong, I was sur i used this way to copy file in the documents folder.
I must to find an other way
Best regards
Jean-Marc
Sorry i am wrong, I was sur i used this way to copy file in the documents folder.

I must to find an other way
Best regards
Jean-Marc
https://alternatic.ch
Re: documents folder is empty
Hi Jean-Marc,
you have different solutions ...
1. on startup, the first time, you can copy your folder from the "engine" folder into the "document" folder
2. you can set the "document sharing" flag and you can access the "document" folder from iTunes
3. you can trasfer file into the "document" folder from the network (e.g. FTP, Dropbox, ...)
... and don't forget the Apple rules for the "document" folder or ... your App will be rejected
Guglielmo
you have different solutions ...
1. on startup, the first time, you can copy your folder from the "engine" folder into the "document" folder
2. you can set the "document sharing" flag and you can access the "document" folder from iTunes
3. you can trasfer file into the "document" folder from the network (e.g. FTP, Dropbox, ...)
... and don't forget the Apple rules for the "document" folder or ... your App will be rejected

Guglielmo
Re: documents folder is empty
Ciao Guglielmo,
And thank for your help.
I need a lot of files in the documents folder, essentially pictures and sound files (rrenarrator don't work in french)
more less 200 Mo. I think copy file from the engine folder is not a good way.
ITunes and network ways are probably better.
I'm interested to know where i can see the Apple rules for the "document" folder
Do you have an URL for that ?
Best regards
Jean-Marc
And thank for your help.
I need a lot of files in the documents folder, essentially pictures and sound files (rrenarrator don't work in french)
more less 200 Mo. I think copy file from the engine folder is not a good way.
ITunes and network ways are probably better.
I'm interested to know where i can see the Apple rules for the "document" folder
Do you have an URL for that ?
Best regards
Jean-Marc
https://alternatic.ch
Re: documents folder is empty
Bonsoir Jean-Marc,
on "File System Basics" http://developer.apple.com/library/ios/ ... rview.html, under the section "iOS Standard Directories: Where Files Reside" and "Where You Should Put Your App’s Files" you will find some info.
The problem is that Apple want to avoid large backups on iCloud and, because the user can choose to backup his data on iCloud, Apple reject the App which store a large amount of data on the "document" directory (tipical reject reason is : We found that your app does not follow the iOS Data Storage Guidelines, which is not in compliance with the App Store Review Guidelines).
You have two solution :
1. Use the "library" directory, which is still backuped by iTunes, but not on iClaud.
2. Use the "document" directory, setting for the files the "do not back up" attribute (see the File Attributes, iphoneSetDoNotBackupFile, on LiveCode iOS release notes).
Hope this help,
Guglielmo
on "File System Basics" http://developer.apple.com/library/ios/ ... rview.html, under the section "iOS Standard Directories: Where Files Reside" and "Where You Should Put Your App’s Files" you will find some info.
The problem is that Apple want to avoid large backups on iCloud and, because the user can choose to backup his data on iCloud, Apple reject the App which store a large amount of data on the "document" directory (tipical reject reason is : We found that your app does not follow the iOS Data Storage Guidelines, which is not in compliance with the App Store Review Guidelines).
You have two solution :
1. Use the "library" directory, which is still backuped by iTunes, but not on iClaud.
2. Use the "document" directory, setting for the files the "do not back up" attribute (see the File Attributes, iphoneSetDoNotBackupFile, on LiveCode iOS release notes).
Hope this help,
Guglielmo
Re: documents folder is empty
Ciao Guglielmo,
Thanks a lot
Jean-Marc
Yes, of courseHope this help,
Thanks a lot
Jean-Marc
https://alternatic.ch
Re: documents folder is empty
Hi,
I am confused with the copy file pan.
I added a folder in the copy file pan and i see it in the documents folder.
I used the same version of liveCode 5.0.2 and xCode 4.2.1
Jean-Marc
I am confused with the copy file pan.

I added a folder in the copy file pan and i see it in the documents folder.
I used the same version of liveCode 5.0.2 and xCode 4.2.1
Jean-Marc
https://alternatic.ch
Re: documents folder is empty
Hi Jean-Marc,jmburnod wrote:Hi,
I am confused with the copy file pan.![]()
I added a folder in the copy file pan and i see it in the documents folder.
I used the same version of liveCode 5.0.2 and xCode 4.2.1
Jean-Marc
a little more details would be better ...
In which copy file pan ? LiveCode ? iTunes ?
Where you see the file ? In the Simulator ? In the real device ?
Guglielmo
Re: documents folder is empty
Hi Guglielmo,
Thank a lot for the reply
In LiveCode
Jean-Marc
Thank a lot for the reply
In which copy file pan ? LiveCode ? iTunes ?
In LiveCode
In the organizer window of xCodeWhere you see the file ? In the Simulator ? In the real device ?
Jean-Marc
https://alternatic.ch
Re: documents folder is empty
Bonsoir Jean-Marc,
well, if you or (an erlier version of) your app did NOT do this, then this is clearly a case of MAGIC!
No, honestly, this does NOT happen automatically, never!
Best
Klaus
well, if you or (an erlier version of) your app did NOT do this, then this is clearly a case of MAGIC!

No, honestly, this does NOT happen automatically, never!
Best
Klaus
Re: documents folder is empty
Guten Abend Klaus,
I tried the same with LC 5.5.2 and the folder documents is empty as expected
I did also an other try with 5.0.2 and the folder documents is empty as expected
Ok i understand i must give up this way
Best
Jean-Marc
I tried the same with LC 5.5.2 and the folder documents is empty as expected
I did also an other try with 5.0.2 and the folder documents is empty as expected
Ok i understand i must give up this way
Best
Jean-Marc
https://alternatic.ch