JDownloader Community - Appwork GmbH
 

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 23.03.2023, 08:24
Triptonite Triptonite is offline
Modem User
 
Join Date: Mar 2023
Posts: 3
Default Move files and folders after extraction

I would like to ask for assistance in creating an event script that will move the extracted files and folders from my extraction folder "/output/EXTRACTED" folder to the "/output/FILEBOT" folder.

My attempt, which you can see below, doesn't move the folders. Can you please help me edit the script so that it also moves the folders or alternatively removes the left behind empty folders.

Code:
/*
    Move extracted files
    Trigger: Archive extraction finished
*/


var destination = "/output/FILEBOT";

archive.extractedFilePaths.forEach(function(filePath) {
    filePath.moveTo(destination);
})
Thank you very much!
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 23:03.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.