Wouldn't it be nice if zope supported the recursive get on ftp? Does anybody know how to edit through FTP with VIM? Thank you.
Marco Mariani wrote:
Wouldn't it be nice if zope supported the recursive get on ftp?
Why wouldn't Zope support it? FTP recursion is, as far as I know, purely a function of the FTP client. I don't believe there is an FTP protocol command related to recursion. rfc265 mentions nothing at all of recursion. -Michel
On Tue, Apr 11, 2000 at 05:40:47PM -0700, Michel Pelletier wrote:
Wouldn't it be nice if zope supported the recursive get on ftp?
Why wouldn't Zope support it? FTP recursion is, as far as I know, purely a function of the FTP client.
I've tried with ncftp: it has something to do with folders, it only downloads the files in the specified one and the subfolders are empty. Password required. Password: Login successful. Logged in to localhost. ncftp / > cd mariani ncftp /mariani > get -R foto foto/index_html: 250.00 B 17.83 kB/s foto/uploadImage: 145.00 B 15.45 kB/s foto/formImage: 493.00 B 52.14 kB/s foto/addImageProp: 233.00 B 25.53 kB/s foto/tipoList: 1.27 kB 102.04 kB/s foto/tipoModify: 471.00 B 32.55 kB/s foto/tipoDelete: 664.00 B 45.98 kB/s foto/tipoForm: 580.00 B 42.05 kB/s foto/menuCategorieFoto: 366.00 B 29.20 kB/s foto/fotoUpload: 342.00 B 24.95 kB/s ncftp /mariani > dir foto d--------- 1 volvox Zope 0 Apr 11 21:42 .. ---------- 1 Zope Zope 0 Apr 7 20:20 acl_users -rw-rw---- 1 volvox Zope 233 Apr 7 21:32 addImageProp -rw-rw---- 1 volvox Zope 493 Apr 10 17:02 formImage -rw-rw---- 1 volvox Zope 342 Apr 11 18:51 fotoUpload -rw-rw---- 1 volvox Zope 250 Apr 11 18:51 index_html -rw-rw---- 1 volvox Zope 366 Apr 11 18:46 menuCategorieFoto drwxrwx--- 1 volvox Zope 0 Apr 11 13:02 store ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -rw-rw---- 1 volvox Zope 664 Apr 11 12:39 tipoDelete -rw-rw---- 1 volvox Zope 580 Apr 11 12:32 tipoForm -rw-rw---- 1 volvox Zope 1297 Apr 11 13:01 tipoList -rw-rw---- 1 volvox Zope 471 Apr 11 12:17 tipoModify drwxrwx--- 1 volvox Zope 0 Apr 11 12:25 upload ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -rw-rw---- 1 volvox Zope 145 Apr 7 21:53 uploadImage ncftp /mariani > dir foto/upload ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ d--------- 1 volvox Zope 0 Apr 11 18:51 .. -rw-rw-r-- 1 volvox Zope 33904 Apr 4 18:26 MVC-006F.JPG -rw-rw-r-- 1 volvox Zope 31266 Apr 4 18:26 MVC-009F.JPG -rw-rw-r-- 1 volvox Zope 43213 Apr 4 18:26 MVC-010F.JPG -rw-rw-r-- 1 volvox Zope 42248 Apr 4 18:26 MVC-013F.JPG -rw-rw-r-- 1 volvox Zope 79034 Apr 4 18:26 MVC-014F.JPG -rw-rw-r-- 1 volvox Zope 64561 Apr 4 18:26 MVC-015F.JPG -rw-rw-r-- 1 volvox Zope 77239 Apr 4 18:26 MVC-016F.JPG -rw-rw-r-- 1 volvox Zope 84857 Apr 4 18:26 MVC-017F.JPG ncftp /mariani > !ls foto/upload ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ncftp /mariani >
Why wouldn't Zope support it? FTP recursion is, as far as I know, purely a function of the FTP client.
I've tried with ncftp: it has something to do with folders, it only downloads the files in the specified one and the subfolders are empty.
From what you describe, and from having a quick play around with ncftp, it does seem like there is a limit to the depth to which recursion is working, in that the recursion only works to two levels deep.
So if I do get -R * I get everything at this level, everything at the level below, but no deeper. If I now move down into a sub-directory I and repeat the operation, I now get files one level deeper (ie. two levels below where I start). I suspect, however, that this is a problem with ncftp rather than with ZServer. I don't know how ncftp works, but from what I understand, it is doing a whole host of ftp requests, the results of which it will parse and generate another set of requests for the recursion. For whatever reason, ncftp seems to stop once it has gone two levels deep. Hope that helps. Cheers, Stephen -- Stephen Harrison - stephen@nipltd.com New Information Paradigms - www.nipltd.com
Stephen Harrison wrote:
So if I do get -R * I get everything at this level, everything at the level below, but no deeper.
If I now move down into a sub-directory I and repeat the operation, I now get files one level deeper (ie. two levels below where I start).
I suspect, however, that this is a problem with ncftp rather than with ZServer. I don't know how ncftp works, but from what I understand, it is doing a whole host of ftp requests, the results of which it will parse and generate another set of requests for the recursion. For whatever reason, ncftp seems to stop once it has gone two levels deep.
In newer versions of ncftp, it will use the TAR method to recursively get directories, iff the server supports it. -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900
participants (4)
-
Bill Anderson -
Marco Mariani -
Michel Pelletier -
Stephen Harrison