Exemple #1
0
 /// <summary>
 ///     Combines <see cref="Directory.Exists(string)"/> and <see cref="File.Exists(string)"/>
 ///     to determine whether the specified path element exists.
 /// </summary>
 /// <param name="path">
 ///     The file or directory to check.
 /// </param>
 public static bool DirOrFileExists(string path) =>
 DirectoryEx.Exists(path) || FileEx.Exists(path);
Exemple #2
0
 /// <summary>
 ///     Determines whether the specified path is specified as directory.
 /// </summary>
 /// <param name="path">
 ///     The path to check.
 /// </param>
 public static bool IsDir(string path) =>
 DirectoryEx.Exists(path) && FileEx.MatchAttributes(path, FileAttributes.Directory);