Method Rename | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Rename(IFileSystem, IFileSystemInfo)
Specifies how to handle file/directory rename attempts in FileDialog.
public IFileSystemInfo Rename(IFileSystem fileSystem, IFileSystemInfo toRename)
Parameters
fileSystem
IFileSystem
toRename
IFileSystemInfo
Returns
IFileSystemInfo
The new name for the file or null if cancelled
Remarks
Ensure you use a try/catch block with appropriate error handling (e.g. showing a MessageBox