ArOZ Online File System Zipping Application, design to replace the legacy zipping PHP script.

TC 8f1649b580 上傳檔案到 '' %!s(int64=5) %!d(string=hai) anos
test 58cf028880 Rebuild armv6l binary %!s(int64=5) %!d(string=hai) anos
LICENSE 58cf028880 Rebuild armv6l binary %!s(int64=5) %!d(string=hai) anos
README.md 58cf028880 Rebuild armv6l binary %!s(int64=5) %!d(string=hai) anos
example command.txt 58cf028880 Rebuild armv6l binary %!s(int64=5) %!d(string=hai) anos
fszip.exe 58cf028880 Rebuild armv6l binary %!s(int64=5) %!d(string=hai) anos
fszip_amd64.elf 28853319c6 added amd64 binary %!s(int64=5) %!d(string=hai) anos
fszip_arm64.elf 8f1649b580 上傳檔案到 '' %!s(int64=5) %!d(string=hai) anos
fszip_armv6l.elf 58cf028880 Rebuild armv6l binary %!s(int64=5) %!d(string=hai) anos
fszip_i386.elf aeb87fafb7 added i386 binary %!s(int64=5) %!d(string=hai) anos
main.go 58cf028880 Rebuild armv6l binary %!s(int64=5) %!d(string=hai) anos
title.png 58cf028880 Rebuild armv6l binary %!s(int64=5) %!d(string=hai) anos
title.psd 58cf028880 Rebuild armv6l binary %!s(int64=5) %!d(string=hai) anos

README.md

fszip

ArOZ Online System File Explorer - File System Zipping Backgroundworker, design to replace the legacy zipping PHP script.

What is File System Zipping Backgroundworker?

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.

How can I use the fszip?

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=

Log file and command conversion detail

Please take a look at fsexec's README file for more examples.

License

CopyRight Author Toby Chui under ArOZ Online Project, 2019