Quote:
Originally Posted by mgpai
Code:
var filePaths = archive.getExtractionLog().match(/\(FileArchiveFile\)File:[^|]+/g).map(function(filePath) {
return filePath.replace(/.+?:(.+)/, "$1");
});
alert(filePaths.join("\n"));
|
Have idea how make distinguish between manual and automatical extract?
i make so: var links = archive.getDownloadLinks() || [];
And then if links.length > 0 I take it for automatical extract otherwise I take it for manual extract.
Is safe? Or better idea?
Because your code must only run when manual extract.