How to check if directory exists

  • Thread starter Thread starter Gregory K
  • Start date Start date
G

Gregory K

I need to set Environment.CurrentDirectory. If the path I am trying to set
doesn't exist, the statement raises an exception. Is there a way to check
whether given path exists? In the other words, is there in Framework 2.0
something similar to File.Exists() for directories?
Gregory Khrapunovich
 
Back
Top