Hi,
NOTE:
Linux Server
I am trying to zip all the scripts made via the SIL Manager (cPrime Power Script). SIL has it's own routine for this - zipFiles (https://confluence.cprime.io/display/SIL/zipFiles).
I want to zip the whole folder with all the scripts in it located here on the server:
/var/atlassian/application-data/jira/silprograms - as it is set to pr. standard.
I got this reply from SIL support:
Or you can use SIL to zip up the files and send in an email or attach to a ticket.
For now i have not succeded in this.
The command i use in full looks like this:
boolean test = zipFiles("/var/atlassian/application-data/jira/silprograms", "TestZip.zip");
return test
Also note:
I tried to zip 1 file like this:
boolean test = zipFiles("/var/atlassian/application-data/jira/silprograms/.FileForExport.swp", "TestZip.zip");
return test
This returned true but i cannot find the zip file in on the server.
Any help or suggestions are very welcome.
Thanks in advance.
/Dennis
1. zipFiles zips, surprise!, files, not directories. First argument is an array of files, not an directory. See https://confluence.cprime.io/display/SIL/zipFiles
2. cd /var/atlassian/; find . -name TestZip.zip
If you want improvements on that zip behavior, please fill a ticket, thanks !
I went around this with findFiles(). But thanks for the info. Might fill in a form anyway since i believe it would be much more useful if it could take in directories as well.
Good day sir.
/Dennis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's great! Have a wonderful day yourself! It's Friday.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.