Posted: 2012-07-20 08:32
how can I delete a directory recursively?
with session.executeCommand("RD ....") I cant't delete folders that are not empty.
is the only possibility wirting a recursive function that removes all files and then deleting directories?
Location: Prague, Czechia
There's no official way.
Added to tracker:
You may achieve that with Session.ExecuteCommand. But the solution is protocol-dependent. I do not know, what protocol you are using. If FTP (seems so from RD command), there's probably no way.
You can post new topics in this forum
And it's free!