Quote:
Originally Posted by zreenmkr
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
Quote:
b) and function that return all subfolders and a function return files in dir
|
Use 'filePath' methods.
Quote:
Originally Posted by zreenmkr
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.