Reputation: 3573
I want to be able to rename directory whether it contains something or not. I do not see such option. For instance this is how I create directory, but how to rename it?:
Public Sub CreateDirectory(path As String)
If session IsNot Nothing Then
session.CreateDirectory(path)
End If
End Sub
Upvotes: 2
Views: 958
Reputation: 202393
Use the Session.MoveFile
method:
session.MoveFile("/path/directory", "/path/new_name")
Upvotes: 2