Source/NFX/IOMiscUtils.cs
/// <summary>
/// Deleted file if it exists - does not block until file is deleted, the behavior is up to the OS
/// </summary>
/// <param name="fileName">Full file name with path</param>
Deleted file if it exists - does not block until file is deleted, the behavior is up to the OS
Deleted file if it exists - does not block until file is deleted the behavior is up to the OS
public static void EnsureFileEventuallyDeleted(string fileName)
        {
          if (File.Exists(fileName))
            File.Delete(fileName);
        }
public static void EnsureFileEventuallyDeleted ( string fileName ) { if ( File . Exists ( fileName ) ) File . Delete ( fileName ) ; }
Deleted file if it exists - does not block until file is deleted, the behavior is up to the OS
Deleted file if it exists - does not block until file is deleted the behavior is up to the OS
fileName
string
Full file name with path
Full file name with path