File Exists Functionality (General questions)
I am currently evaluating SFTP.NET product and one thing i am missing is how to check for an existence of a remote file. Our SFTP application will send a file to a SFTP directory called <ROOT> and our Server app will process that file and once done will move the file to <ROOT>/Processed directory. My SFTP App must check that the file exists in <ROOT>/Processed and not in <ROOT> before sending the next file. The problem is that the <ROOT>/Processed directory may have up to 30,000 files in it and to do a ListDir then parse out the one file will take a long time ( I tested it out ). If there a more efficient way to do this?
Thank You
Ed Mendez
Re: File Exists Functionality
Ed,
yes, you could use GetAttributes method.
Hope it helps.