예제 #1
0
 /// <summary>
 /// Method to delete a file given its full path
 /// </summary>
 /// <param name="filePath">Full path to the file that will be deleted</param>
 public void DeleteFileIfExists(string filePath)
 {
     FileWrap fileHelper = new FileWrap();
     if (fileHelper.Exists(filePath))
     {
         fileHelper.Delete(filePath);
     }
 }
예제 #2
0
 /// <summary>
 /// Checks for the existence of the given file.
 /// </summary>
 /// <param name="filePath">The path to check</param>
 public bool FileExists(string filePath)
 {
     FileWrap file = new FileWrap();
     return file.Exists(filePath);
 }