Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.74 KB

File metadata and controls

33 lines (20 loc) · 1.74 KB

VFSSafeExtensions.TryRenameFile(this IVirtualFileSystem, string, string) Method

Safely renames a file without throwing exceptions.

public static bool TryRenameFile(this Atypical.VirtualFileSystem.Core.Contracts.IVirtualFileSystem vfs, string filePath, string newName);

Parameters

vfs IVirtualFileSystem

The virtual file system.

filePath System.String

The file path as a string.

newName System.String

The new file name.

Returns

System.Boolean
True if the file was renamed successfully, false otherwise.