Hi Rob, as you probably know from looking at ftp logs a client MGET command
is actually an NLST followed followed by a get (RETR) for each of the
returned list entries. It's standard for a list that requests a relative
path to return the list with just the files names. In your case however
it's irrelevant. A server should be able to consume the results of its own
list. So if your server is responding to an NLST with just file names then
it MUST be able to retrieve (GET) a file based on that same output.
Anything else doesn't make sense.So if the RETR uses the same values that
are on the NLST response then the server has a bug.
On Wed, Jan 30, 2013 at 11:12 PM, <rob@xxxxxxxxx> wrote:
When doing ftp make it a bad habit to do
mget /mypathname/*.*
versus
cd /mypathname
mget *.*
The reason being is that some servers will support the mget
/mypathname/*.* and others won't.
I've seen this work
ls /mypathname/*.txt
return
thisfile.txt
thatfile.txt
However, notice the path name missing? So when you do a mget
/mypathname/*.* you may get
mget /mypathname/*.*
would you like to get thisfile.txt? y
no such file
The native ftp server for IBM i supports mget /directory/*.*. Linoma's
GoAnywhere does not. They have filed an enhancement request and they've
been pretty responsive in the past. However they do state that the RFC is
a little vague on whether or not the list should return the path name.
There is some concern about backward compatibility...
They did some checking around and they are seeing a mix of ftp sites that
go either way.
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.