For use with DuScriptUI.
A "Browse" button for folders only, with an optional text field for the path.
This is not a real class, and cannot be instanciated.
Use DuScriptUI.folderSelector to create a selector.
The DuFolderSelector inherits the Group object from ScriptUI and has all of its properties and methods.

# new DuFolderSelector()

Name Type Description
path string The folder path, initialized with an empty string. Note that this may not point to an existing folder if the user entered an incorrect path in the text field.
To be sure to get an existing folder, you can use the getFolder() method.
editText DuEditText | null The text field, if any.
button DuButton The "Browse" button.

View Source Duik_api_fordoc.jsxinc, line 13716


# static getFolder() → {Folder|null}

Gets the selected folder.

View Source Duik_api_fordoc.jsxinc, line 13731

The new Folder, if any. null if the Folder does not exist or the user has input an incorrect path.
Folder | null