public createFolder(parent as FolderPath, name as String) as FolderPath
Creates a direct subfolder, refreshes only its parent's branch and selects the new entry. Existing entries are rejected.
| Parameter | Description |
|---|---|
parent | Physical folder within this tree. |
name | One filename component, without a separator or ... |
Newly created folder.
tree.viewMode = FileSystemViewMode.READ_WRITE folder = tree.createFolder(Path.cwd, "new-folder")