Hello,
I want to check that given path is File or Directory in a jsx.
The 'isFileExist' function only check that path is exist or not in the file system.
I want to check it is 'folder' or 'file'
For example,
path = 'd:/folder1' then isFile method should return 'false'
path = 'd:/folder1/1.epr' then isFile method should return 'true'
How can I do that? I am using below code.
isFileExist : function(path) { var file = new File(path); return file.exists; } isFile : function(path) { //How can I check that path is 'file' or 'directory'? }
Premiere Pro version 11.0