#21
|
|||
|
|||
Missing "{" bracket:
if (link.finished) {var destinationFolder ... Best way to avoid such errors are to add/test it in GUI (Click "Test compile" to check for syntax errors) and then add it to headless. |
#22
|
|||
|
|||
Quote:
|
#23
|
|||
|
|||
You can find me in JD Chat for online assistance with it:
Code:
kiwiirc.com/nextclient/irc.freenode.net/#jdownloader |
#24
|
||||
|
||||
@mgpai: thanks for the hint. good sight
@dbrown1986: The script doesn't care about "environment variables" and yes, the previous post shows the missing bracket. I've just tested the exact same script (different path) and working fine. see pastebin.com/RmHZPg3F
__________________
JD-Dev & Server-Admin |
#25
|
|||
|
|||
Quote:
eg. move files which are less than 999 MB. |
#26
|
||||
|
||||
@xefeg: try
Quote:
__________________
JD-Dev & Server-Admin |
#27
|
|||
|
|||
Also, I use Packagizer to download all rapidgator links to FOLDER A. Is there anyway to move only that Folder A to a new folder?
The below code does not seem to work Quote:
|
#28
|
||||
|
||||
@xefeg: I'm sorry but can you try to explain better? after a single link is finished, you cannot move the folder. do you want to move the finished file to folder B ?
__________________
JD-Dev & Server-Admin |
#29
|
|||
|
|||
Quote:
So using Packagizer, There is a custom folder for all files downloaded from RG. After this download is finished from RG custom folder, I wanted to move the downloaded files to a new folder. My default download folder for all files is @Jdownloader folder. Rapidgator folder is @RG folder, So, I basically wanted to move the files from @RG Folder to a @NewFolder |
#30
|
||||
|
||||
@xefeg: and why move after download? why not directly download to correct folder?
see here for example https://board.jdownloader.org/showpo...9&postcount=22 Quote:
__________________
JD-Dev & Server-Admin |
#31
|
|||
|
|||
Because the program I used which monitor the downloaded folder does not detect anything. It detects only when the files are moved.
It is still not working, It seems like all the files inside "J:/JJ" are moved which is the default download folder. I need to move the files which are downloaded into "J:/JJ/RG/" to the "J:/JJ/RGMove/". Quote:
Last edited by xefeg; 09.06.2022 at 13:04. |
#32
|
||||
|
||||
Quote:
__________________
JD-Dev & Server-Admin |
#33
|
||||
|
||||
can you tell me what program that is?
__________________
JD-Dev & Server-Admin |
#34
|
|||
|
|||
Quote:
I wanted to move the files from the RG folder to a new folder but the script seems to move all files whether its in the RG folder or not. |
#35
|
|||
|
|||
Code:
/* Move downloaded files Trigger: A Download Stopped */ if (link.finished) { var curFolder = link.package.downloadFolder; var newFolder = curFolder.replace("/JJ/RG/", "/JJ/RGMove/"); newFolder != curFolder && getPath(link.downloadPath).moveTo(newFolder); } |
#36
|
|||
|
|||
Hello Sir, it still does not move. The downloaded files remains at "/JJ/RG/"
|
#37
|
|||
|
|||
Quote:
Code:
Try replacing "/" with "\\". |
#38
|
|||
|
|||
|
#39
|
||||
|
||||
@mgpai: with next core update you can access FilePath.getPathSeparator
which will return / or \ depending on current OS
__________________
JD-Dev & Server-Admin |
#40
|
|||
|
|||
Thanks @Jiaz.
|
Thread Tools | |
Display Modes | |
|
|