save pictures/files outside of csentry folder
-
RERII
- Posts: 56
- Joined: March 4th, 2015, 11:34 am
save pictures/files outside of csentry folder
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.
-
aaronw
- Posts: 571
- Joined: June 9th, 2016, 9:38 am
- Location: Washington, DC
Re: save pictures/files outside of csentry folder
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
execsystem("camera:" + pathname(CSEntryExternal) + "photo.jpg"); // Save to SD Card
-
RERII
- Posts: 56
- Joined: March 4th, 2015, 11:34 am
Re: save pictures/files outside of csentry folder
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.