Hello everyone,
Is there any way to move files from default directory to another directory after completed download (each link)?
I have readed few posts on this forum (but mostly about extraction to separate directory).
Situaltion:
Device got small ammount of internal memory, so I mounted network drive (not NAS). One disavantage - You can't download directly on that network drive (Some Error, all files got 0 bytes).
Thanks for any help.
@edit:
Found script on forum, but trigger is 'Download Stopped'. I got whole package of ~500GB, is possible to move each single completed download to another directory? How to do that?
// Move finished non-archive files, to user defined folder
// Trigger required: "A Download Stopped"
var destFolder = "/var/www/mydir"; // <- Set destination folder.
if (link.isFinished() && !link.getArchive()) {
getPath(link.getDownloadPath()).moveTo(destFolder);
}
Last edited by maze; 29.07.2019 at 17:55.
|