Page 1 of 1

need to copy file outside cspro directory

Posted: August 11th, 2022, 2:01 am
by mixkiel
is there a way to run unix shell commands from within CSPro?
execsystem "app:?"

Re: need to copy file outside cspro directory

Posted: August 11th, 2022, 6:38 am
by Gregory Martin
Assuming you're talking about Android, there is no way to do this using CSEntry. In any case, due to security controls, Android really restricts where an application can copy files. You can use filecopy to copy files outside of the csentry directory:

https://www.csprousers.org/help/CSPro/f ... ction.html

The two main locations that you can write to are CSEntryExternal and Downloads:

https://www.csprousers.org/help/CSPro/p ... ction.html

Typically if you want to share a file with another application, you use the Downloads directory. There is also a file sharing API for advanced uses:

https://github.com/CSProDevelopment/CSE ... FileAccess