Table of Contents

Method Rename

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

Rename(IApplication, IFileSystem, IFileSystemInfo)

Specifies how to handle file/directory rename attempts in FileDialog.

public IFileSystemInfo Rename(IApplication app, IFileSystem fileSystem, IFileSystemInfo toRename)

Parameters

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