ArOZ Online File System Zipping Application, design to replace the legacy zipping PHP script.
|
5 éve | |
---|---|---|
README.md | 5 éve | |
example command.txt | 5 éve | |
fszip.exe | 5 éve | |
main.go | 5 éve | |
title.png | 5 éve | |
title.psd | 5 éve |
ArOZ Online System File Explorer - File System Zipping Backgroundworker, design to replace the legacy zipping PHP script.
File System Zipping Backgroundworker - Short for fszip, is a backgound working script that is design to replace the current PHP based zipping method used by the file explorer. This work similar to fsexec with asynchonized design to prevent the main PHP server from freezing due to the zipping process. This is particularly useful on low power host like the Raspberry Pi Zero series.
Although we strongly recommend using the fszip via file explorer API, you can call the binary directly with the following command.
./fsexec {uuid} {command_in_base64_encoded_JSON_string}
The command has to be in one of the format that fits the following rule
// Command Structure:
// [{"zip" / "unzip", "{source}", "{target}"]
//Examples
//["zip","test","test.zip"]
//Zip the folder "test" into "test.zip"
./fszip uuid1 WyJ6aXAiLCJ0ZXN0IiwidGVzdC56aXAiXQo=
//["unzip","test.zip","unzip"]
//Unzip the folder "test.zip" to unzip/
./fszip uuid2 WyJ1bnppcCIsInRlc3QuemlwIiwidW56aXAiXQo=
Please take a look at fsexec's README file for more examples.
CopyRight Author Toby Chui under ArOZ Online Project, 2019