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

Creates an empty file without truncating an existing file. Refreshes its parent's branch and selects the new entry.

Parameters
ParameterDescription
parentPhysical folder within this tree.
nameOne filename component.
Returns

Newly created file.

Throws
  • IOException For READ_ONLY, invalid names, collisions or I/O errors.
Example
file = tree.createFile(Path.cwd, "notes.txt")