IsFile and IsDirectory functions

  • Thread starter Thread starter Flix
  • Start date Start date
F

Flix

Is there any function to detect if a valid path is a file or a directory ?
I've tried with (System.IO.Path.GetExtension(path)==""), but it doesn't
work, since some files haven't any extension and some folders have some dots
inside their path.
Any suggestions?
 
You could check out File.Exists() and Directory.Exists() but I'm assuming
you mean valid files/directories already existing
 
Back
Top