CClash.FileUtils.Exists C# (CSharp) Метод

Exists() публичный статический Метод

public static Exists ( string path ) : bool
path string
Результат bool
        public static bool Exists(string path)
        {
            return new FileInfo(path).Exists;
        }
        

Usage Example

Пример #1
0
 public virtual bool IsSupported(IEnumerable <string> args)
 {
     OperationStart = DateTime.Now;
     if (FileUtils.Exists(Compiler.CompilerExe))
     {
         var rv = Compiler.ProcessArguments(args.ToArray());
         if (!rv)
         {
             Logging.Emit("args not supported {0}", Cache.GetType().Name);
         }
         return(rv);
     }
     throw new FileNotFoundException(Compiler.CompilerExe);
 }
All Usage Examples Of CClash.FileUtils::Exists