Skip to content

TemporaryFileHelper.TryDeleteOrMark method

Tries to delete a file, or marks it for deletion by TryDeleteMarkedFiles by creating a ".delete" file.

public static void TryDeleteOrMark(string filePath, ITemporaryFileSystem? fileSystem = null)
parameter description
filePath The file to be deleted.
fileSystem The file system to use, or null to use the physical file system.

See Also