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!