idFTP, something like ForceDirectories for creating DIRs on a FTP-Server in one shot

Giganews Newsgroups
Subject: idFTP, something like ForceDirectories for creating DIRs on a FTP-Server in one shot
Posted by:  HHoffmann (NoMa…@NoReturn.com)
Date: Wed, 06 Feb 2008

Hello all,

i'm currently searching for a solution for a function like
"ForceDirectories" for use with a FTP-Server (creating nested Dir's in
one shot there).

FTP's RFC seems not to offer a command for this on server side. So is it
really the only way to take the qualified path (Dir's) to be created and
then to iterate through the single dirs in the given path top down on
server side, checking for existance of that level on server side to find
so the position from where missing dirs have to be created and then to
create the missing ones step by step?

I think that would take quite a while request->response->next ...
->create one missing dir, etc. and so the questions is if there is
something better in don't know yet...

Rgds,

H. Hoffmann

Replies