klyn.gui.windows.filesystem.FileSystemTree.createFolder
method
public createFolder(parent as FolderPath, name as String) as FolderPath
Description

Creates a direct subfolder, refreshes only its parent's branch and selects the new entry. Existing entries are rejected.

Parameters
ParameterDescription
parentPhysical folder within this tree.
nameOne filename component, without a separator or ...
Returns

Newly created folder.

Throws
  • IOException For READ_ONLY, invalid names, collisions or I/O errors.
Example
tree.viewMode = FileSystemViewMode.READ_WRITE
folder = tree.createFolder(Path.cwd, "new-folder")