View Single Post
  #592  
Old 17.02.2019, 07:43
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 628
Default

Quote:
Originally Posted by almanteka View Post
... i'm looking to move the original "un-extracted" package to another folder instead ...
Code:
// Move archive files after extraction
// Trigger: Archive Extraction Finished

var links = archive.getDownloadLinks() || [];

links.forEach(function(link) {
    var filePath = getPath(link.getDownloadPath());
    filePath.moveTo(filePath.getParent().toString().replace("JD Downloads", "!TRASH!"));
});

Last edited by mgpai; 17.02.2019 at 08:00.
Reply With Quote