Answers for "c# check directory"

C#
2

c# check if string is directory

File.GetAttributes(data.Path).HasFlag(FileAttributes.Directory)
Posted by: Guest on November-19-2020
0

C# is folder

using System.IO;

string Path = "C:Somefolderpath";
if (Directory.Exists(Path))
{
  Console.WriteLine("Directory " + Path + " Exists");
}
Posted by: Guest on July-07-2021

C# Answers by Framework

Browse Popular Code Answers by Language