|
@@ -11,7 +11,7 @@ if (typeof src === "undefined" || src === "" || typeof dest === "undefined" || d
|
|
|
sendJSONResp(JSON.stringify({error: "Missing src or dest parameter"}));
|
|
sendJSONResp(JSON.stringify({error: "Missing src or dest parameter"}));
|
|
|
} else {
|
|
} else {
|
|
|
try {
|
|
try {
|
|
|
- var ok = ziplib.extractZipFile(src, dest);
|
|
|
|
|
|
|
+ var ok = ziplib.extractAnyFile(src, dest);
|
|
|
sendJSONResp(JSON.stringify({success: ok}));
|
|
sendJSONResp(JSON.stringify({success: ok}));
|
|
|
} catch(e) {
|
|
} catch(e) {
|
|
|
sendJSONResp(JSON.stringify({error: e.toString()}));
|
|
sendJSONResp(JSON.stringify({error: e.toString()}));
|