Quote:
Originally Posted by Crais
... move a package after downloading ...
|
Code:
/*
Move extracted files
Trigger: Archive extraction finished
*/
var source = "c:\\downloading";
var destination = "d:\\finished";
archive.extractedFilePaths.forEach(function(filePath) {
var newFolder = filePath.parent.toString().replace(source,destination);
filePath.moveTo(newFolder);
})