[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] net::ftp not working properly?



listers,

I'm in the process of attempting to ftp up a great many files recursing
through the directories with the following command:

   $ftp->mkdir ($element ,true);

where $element is a valid path.  I've tried :, \, and / as the delimiters
but it doesn't appear that it's working correctly.  In each case, I end up
with a directory that should be inside another showing up as a completely
seperate directory.

What am I missing?  ftp.pm says:

   mkdir ( DIR [, RECURSE ])

   Create a new directory with the name DIR.
   If RECURSE is true then mkdir will attempt to create all
      the directories in the given path.

   Returns the full pathname to the new directory.


example

Dir_A:Dir_B:Dir_C
Dir_D:Dir_E

Dir_A/Dir_B/Dir_C
Dir_D/Dir_E

Dir_A\Dir_B\Dir_C
Dir_D\Dir_E


will create folders

Dir_A:Dir_B:Dir_C   <- A SINGLE DIRECTORY
Dir_D:Dir_E         <- A SINGLE DIRECTORY

as opposed to

Dir_A         <- A SINGLE DIRECTORY
   Dir_B         <- A directory UNDER Dir_A
      Dir_C         <- A directory UNDER Dir_B
Dir_D         <- A SINGLE DIRECTORY
   Dir_E         <- A directory UNDER Dir_D


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dennis Little			       mailto://dennis.j.little@lmco.com
Lockheed Martin Missiles & Space       mailto://metnet@worldnet.att.net
Sunnyvale, CA			       Web: http://www.lmms.lmco.com/
Phone: 408/756-2170		       LMMS: O/EA52 B/076 C/3E8
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch