any restriction for file name in system.DocumentsDirectory ?

Hi

I am facing a problem with my image files in system.DocumentsDirectory.
on the simulator i can retrieve image files from system.DocumentsDirectory. But when i put it on the device they cannot be accessed. I am not sure if it is the problem with the names i gave
or some other problems.
i have named the images by the date they were taken eg : 29-5-2012_6.jpg
please help

thank you [import]uid: 115284 topic_id: 27026 reply_id: 327026[/import]

What are the errors you’re getting, if any?

Have you tried completely simplifying the names to remove all non-alphanumeric characters and then making them progressively more complex until you hit a problem?

Are you storing them in a directory? There can be conflicts there due to the way different devices (both mobile device and the platform being simulated on) provide file access.

http://blog.anscamobile.com/2012/02/reading-and-writing-files-in-corona/ [import]uid: 8271 topic_id: 27026 reply_id: 109655[/import]

Both OS-X and iOS run an open source version of Unix based on the MACH kernel (very BSD based). Therefore, the Unix file name rules are in place, which is probably the most liberal of all naming conventions.

The file system they use is known as HTFS and you probably could google HTFS file naming conventions to get the details.

But where we run into problems with file names is that HTFS has two variants, case sensitive and case insensitive. OS-X pre-Lion defaulted to insensitive. The iOS devices are using the sensitive version. I’m not sure with Lion freshly installed on a new Mac if they have switched to case sensitive there or not, but for my macs which have been upgraded, they run the insensitive version.

So you will run into file naming problems if your case doesn’t match in your code and what is on the file system, but it will run fine in the simulator.

The file name you listed above should be fine.
[import]uid: 19626 topic_id: 27026 reply_id: 109698[/import]

Thanks guys will check these conditions. [import]uid: 115284 topic_id: 27026 reply_id: 111115[/import]