c# how to check if a string is a valid directory code example
Example: c# check if string is directory
File.GetAttributes(data.Path).HasFlag(FileAttributes.Directory)
File.GetAttributes(data.Path).HasFlag(FileAttributes.Directory)