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