Topic "Remove Single File From a Server"

Author Message
CodeObserver
[View user's profile]

Joined: 2014-02-07
Posts: 1
Location: USA
I am able to get a list of all files on the server and able to download all of them to a local directory. Now I need to delete but ONLY ONE file out of (x) files on the server. I saw session.removefiles but it looks like that will remove ALL files.

Knowing the file name, Need only to remove 1 file.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
The Session.RemoveFiles removes a file/files that you give it in argument.
So Session.RemoveFiles("/path/file") removes just the one file.

http://winscp.net/eng/docs/library_session_removefiles
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License