Is it possible to rename a FTP Folder using FTP commands?

AFAIK, the same commands ( RNFR RNTO ) are used for renaming directories (folders) as are used for renaming files. Your issue may be that you do not have permissions to do what you're trying to do.

AFAIK, the same commands (RNFR/RNTO) are used for renaming directories (folders) as are used for renaming files. Your issue may be that you do not have permissions to do what you're trying to do.

One way would be to create a temporary directory, move all files into it, drop the existing directory, create the directory you want and move all the files into the new directory. Finally, drop the temporary directory. (Assuming that ftp rename doesn't work because the original folder isn't empty).

– Rabskatran Dec 7 '10 at 11:39 No, but I have in my memory that in some cases -- iirc in some ftp server implementations -- you couldn't rename a folder if it wasn't empty. This would be a workaround -- but not a great solution. – Tim Barrass Dec 7 '10 at 11:58.

This probably depends on the FTP client you are using, and the FTP server you're connecting to. Can you specify them both?

I don't use any client. I've to use ftp commands inside my app. – Rabskatran Dec 7 '10 at 11:38 what server are you testing/using?

– Alex Dec 7 '10 at 11:49.

(Assuming that ftp rename doesn't work because the original folder isn't empty).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions