Problem with the function compress on android

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
thierryt
Posts: 47
Joined: April 26th, 2017, 12:17 pm

Problem with the function compress on android

Post by thierryt »

Hi all,
i am happy to see that there is a new function (compress) to Zip files in Cspro 7.1.1. i used it on windows devices and it is functionning very well, but when i generate the .pen file and execute on android device, it just create the file .zip but the content is empty.
Please is there a solution to fix it on android devices ?
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Problem with the function compress on android

Post by josh »

Compress works fine on Android in our tests. I would double check the paths of the files you are giving as input. Very often when moving from Windows to Android the paths are not correct.
thierryt
Posts: 47
Joined: April 26th, 2017, 12:17 pm

Re: Problem with the function compress on android

Post by thierryt »

Hi Josh,
i wrote this :
compress("../BACKUP/donnees.zip","../DATA/*.dat*");
on windows it is ok, but not on android, is there a mistake ?
(The folder DATA contents the data, and i want to make a copy of theses data to another folder named BACKUP and compress that copy).
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Problem with the function compress on android

Post by josh »

That should work assuming all those directories exist on Android. If your application is int he directory /mnt/scdcard/csentry/myapp on Android then it is going to look in the directories /mnt/scdcard/csentry/BACKUP and /mnt/scdcard/csentry/DATA.
Post Reply