JDownloader Community - Appwork GmbH

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 28.02.2020, 13:24
mgpai mgpai is offline
Script Master
Join Date: Sep 2013
Posts: 1,495

Originally Posted by zreenmkr View Post
a) Is there a function to get filename or link on selected file in Downloads/LinkGrabber tab
Use context menu button triggers and their respective (dlSelection/lgSelection) methods

b) and function that return all subfolders and a function return files in dir
Use 'filePath' methods.

Originally Posted by zreenmkr View Post
Is it possible to check file exist via regex?
You can use the regex to only match file name string. To check if file exists, you have to use 'flilePath.exists()' method.

Get the contents of the folder using 'filePath.getChildren()' method and filter them using your pattern. This will eliminate the need for file exists check, since it will return only the contents which exist on the disk.
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 21:41.
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.