Method New
- Namespace
- Terminal.Gui.FileServices
- Assembly
- Terminal.Gui.dll
New(IApplication?, IFileSystem, IDirectoryInfo)
Specifies how to handle 'new directory' operation in FileDialog.
IFileSystemInfo New(IApplication? app, IFileSystem fileSystem, IDirectoryInfo inDirectory)
Parameters
appIApplicationfileSystemIFileSysteminDirectoryIDirectoryInfoThe 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