Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.4 KB

File metadata and controls

27 lines (17 loc) · 1.4 KB

VFSSafeExtensions.TryDeleteFile(this IVirtualFileSystem, string) Method

Safely deletes a file without throwing exceptions.

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

Parameters

vfs IVirtualFileSystem

The virtual file system.

filePath System.String

The file path as a string.

Returns

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