View Single Post
  #4  
Old 20.10.2020, 11:20
dbrown1986 dbrown1986 is offline
Junior Loader
 
Join Date: Oct 2020
Posts: 11
Default

Quote:
Originally Posted by mgpai View Post
Code:
// Move downloaded files to user-specified folder
// Trigger: A Download Stopped

if (link.finished) {
    var destinationFolder = "/home/";
    getPath(link.downloadPath).moveTo(destinationFolder);
}
Huge thanks mgpai, that should do nicely. Though, I didn't think of it at first, is there a way you could add a function to clear the download from the download list after it has been moved? My apologies.

Quote:
Originally Posted by Jiaz View Post
@mgpai: thanks for your fast help

@dbrown1986: Just out of interest, why don't you want to use the out-of-the-box extraction support?
Just a few issues I have run into on the headless install over the remote server. Also being that I'm syncing it to a team drive over rClone, sometimes the rar.part files don't get properly renamed when trying to download directly to the rClone mount or file conflict issues when trying to extract to the sync folder. Limitations of the OS or rClone, I'm sure, but I think it better to simply leave it in RAR format as well, so that they're easier to download via GDrive as well as keep googles built-in AV from complaining about any false-positives. I'm smart enough to scan files on my end with my own A/V.
Reply With Quote