Rename a Directory.... FtpClient.Rename doesn´t work

Aug 19, 2012 at 10:38 AM

Hello together,

with the method  FtpClient.Rename i rename files. It works fine. But now i try to rename a directory. When i use the methode FtpClient.Rename to rename a directory i get the errormessage: Sorry, but the file doesn´t exist. A view in the reference let me now:

from
Type: System..::..String
The full or relative (to the current working directory) path of the existing file
to
Type: System..::..String
The full or relative (to the current working directory) path of the new file

Ok, it works only for files, but now i search for the method to rename a directory. Have someone any idea?

 

greetrings from germanyGibsonSG

Aug 19, 2012 at 11:17 AM

Ahh,

 

i have found the answer. The new directoryname must be ending with the string "/"