Beispiel #1
0
 /// <summary>
 /// Check if a file exists
 /// </summary>
 public static bool FileExists(this IVirtualFileSystem vfs, String fileName)
 {
     try
     {
         return(vfs.GetFileInfo(fileName).Exists);
     }
     catch
     {
         return(false);
     }
 }