"Can't create that directory"

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kcorey
Posts: 62
Joined: Fri Nov 25, 2011 6:06 pm

"Can't create that directory"

Post by kcorey » Sun Mar 04, 2012 5:21 pm

Hi All,

I found a /hugely/ useful error message just now.

My app is called "WriteOn.app", at least for the moment.

I called 'create folder' with the path to my app on my iPad:
/var/mobile/Applications/706ECCCF-DC1D-42F1-B71E-F3D96610DAEF/WriteOn.app/Downloaded

The error in 'the result' is "can't create that directory". Just lovely. Might as well put the "engine" light on my iPad. It would tell me as much.

Can anyone shed a tiny bit more light on that error message?
It /shouldn't/ be permissions, because it's within my app's sandbox.
It can't be space, as I've got 2.4GB remaining.
It shouldn't be rights, as the standalone downloads to the iPad just fine and is attempting to run when this error happens.
I don't have AFAICT any other app using the same signature (but that shouldn't matter anyway, should it)?

Are there any other reasons why one can't create a folder on iOS from within LiveCode?

Thanks,

-Ken

Klaus
Posts: 13858
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: "Can't create that directory"

Post by Klaus » Sun Mar 04, 2012 5:41 pm

Hi Ken,

this IS a permission problem!
You are not allowed to write in the "Application" folder <specialfolderpath("engine")> on iOS!

Use the documents folder -> specialfolderpath("documents")

"can't create that directory/file" always points to a permission probem,
but yes, the error could be a tad more informative :D

Check "File and Folder Handling" in the "iOS Release Notes" -> Menu: Help


Best

Klaus

Klaus
Posts: 13858
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: "Can't create that directory"

Post by Klaus » Mon Mar 05, 2012 1:10 pm

Hi Ken,

now that you have a second, third, fourth and even a fifth opinion from the mailing list,
please don't forget, you read it here first! :D


Best

Klaus

Post Reply

Return to “iOS Deployment”