IsFile or IsDirectory - social.msdn.microsoft.com
2009-1-12 · Thanks for your approach! Voted. It is simple and will work in (almost) all cases when also using Path.GetFileName () for non-existing file or directories. Thumb up for using trailing backslash when specifying directory and paths names: e.g, est est.dir (directory) otherwise file: est est.dir. Programming is a kind of art but not all ...
Get Price