title: C# FTP, how to check if a Path is a File or a Directory?
body: <p>I have an array that contains some FTP pathes, like follows:</p>
  
  <p>"ftp//ip/directory/directory1",<br>
  "ftp//ip/directory/directory2",<br>
  "ftp//ip/directory/file.txt",<br>
  "ftp//ip/directory/directory3",<br>
  "ftp//ip/directory/another_file.csv"</p>
  
  <p>How can i find out if the path is a file or a directory?</p>
  
  <p>Thanks in advance.</p>