Method New | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

New(IFileSystem, IDirectoryInfo)

Specifies how to handle 'new directory' operation in FileDialog.

public IFileSystemInfo New(IFileSystem fileSystem, IDirectoryInfo inDirectory)

Parameters

fileSystem IFileSystem

inDirectory IDirectoryInfo

The parent directory in which the new directory should be created

Returns

IFileSystemInfo

The newly created directory or null if cancelled.

Remarks

Ensure you use a try/catch block with appropriate error handling (e.g. showing a MessageBox