Page 1 of 1

save pictures/files outside of csentry folder

Posted: March 12th, 2020, 9:54 am
by RERII
I would like to know the correct way of saving a file or picture outside of the csentry folder. I don't want enumerators going into the csentry folder. So I would like to save to another folder already created outside of the csentry folder.

Re: save pictures/files outside of csentry folder

Posted: March 12th, 2020, 7:46 pm
by aaronw
Typically I recommend saving it to the application folder like this:
execsystem("camera:" + pathname(Application) + "photo.jpg");
However, if you want to save it outside the csentry folder you could try:
execsystem("camera:" + pathname(CSEntry) + "../photo.jpg"); // Save one folder up from csentry
execsystem("camera:" + pathname(CSEntryExternal) + "photo.jpg"); // Save to SD Card

Re: save pictures/files outside of csentry folder

Posted: March 13th, 2020, 2:00 am
by RERII
Thanks so much for the help. I took the long way before I got your answer. I used the full path. Your version is more code friendly.