Bug #13214 Updated: Request: Tiny patch to allow fast recurisive ftp_rawlist
| From: | matslin at orakel dot ntnu dot no | Date: | Mon, 01 Jul 2002 03:34:11 +0000 |
| Subject: | Bug #13214 Updated: Request: Tiny patch to allow fast recurisive ftp_rawlist | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12616@lists.php.net to get a copy of this message | ||
ID: 13214
Updated by: matslin@orakel.ntnu.no
Reported By: gray@lowpass.net
Status: Open
Bug Type: FTP related
Operating System: Linux
PHP Version: 4.0.6
New Comment:
I just stumbled across this feature request earlier today, and i have
created a patch as a suggestion that adds a parameter to ftp_rawlist, a
boolean that indicates wether recursive or 'normal' listing should be
used.
You can test the patch if you want to, no guarantees, works for me:
http://software.e-mats.org/patches/ftp-diff-2002-07-01
Previous Comments:
------------------------------------------------------------------------
[2001-09-08 15:38:34] gray@lowpass.net
I'm not really up to speed with making diffs and contributing myself,
otherwise I would.
There are many posts in the manual showing various ways to get
recursive directory listing with ftp_rawlist, but they're all very slow
as they required chdir'ing into each subdirectory..
One tiny change to ext/ftp/ftp.c at line 420
return ftp_genlist(ftp, "LIST", path);
changed to
return ftp_genlist(ftp, "LIST -R", path);
And the FTP daemon at the other end will do all the work.
It would be nice to have a more eligant version of that incorperated
into a future release.
Thanks..
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=13214&edit=1