Re: recursive creating of directories

Bram Moolenaar <[email protected]> Fri, 16 Dec 2005 16:27:46 +0100
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Calmar wrote:

> when I have a file like:
>=20
> aa/bb/cc/dd/file.html
>=20
> and when I want to publish that via ftp, when no directory there yet ex=
ist.
>=20
> it seems aap is not able to create those directories. Aap can
> create 'one' and then put the file into it, but aap seems not to
> be able to handle subdirectories?
>=20
> At least, that's what it seems here, hm.

That's right, when using ftp Aap only creates one level of directories.
The "mkdir" command of ftp doesn't have a flag to create directories
recursively.  I haven't found a great need to handle it inside Aap.
Would need to detect that a "mkdir" fails because a directory is
missing.  Can you see what error message the ftp server gives?  Hmm,
this might differ between various ftp servers...

--=20
Lose weight, NEVER Diet again with
                  The "Invisible Weight Loss Patch"
						(spam e-mail)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \=
\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ =
\\\
\\\        download, build and distribute -- http://www.A-A-P.org        =
///
 \\\            help me help AIDS victims -- http://www.ICCF.nl         /=
//


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick