2
Vote

Feature Request: implement FileExists, FolderExists, DeleteFile, and DeleteFolder methods

description

Hi.
 
I would like to request four new methods:
 
public bool FileExists(string fileName)
checks whether or not a file exists on the server
 
public bool FolderExists(string folderName)
checks whether or not a folder exists on the server
 
public void DeleteFile(string fileName)
deletes a file on the server
 
public void DeleteFolder(string folderName)
deletes a folder on the server
 
Thank you.

comments

icnocop wrote Nov 3, 2009 at 12:29 PM

I would also like to request that the DeleteFile method should accept wildcards.

For example:
sftp.DeleteFile("*.txt")

Thank you.

phate89 wrote Nov 6, 2009 at 1:18 AM

and maybe a way to transfer a full folder...not only files..

wrote Jun 11, 2010 at 6:51 PM

wrote Feb 14, 2013 at 12:17 AM