Table of Contents

Method New

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

New(IApplication, IFileSystem, IDirectoryInfo)

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

public IFileSystemInfo New(IApplication app, IFileSystem fileSystem, IDirectoryInfo inDirectory)

Parameters

app IApplication
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