Bug #13214 Updated: Request: Tiny patch to allow fast recurisive ftp_rawlist

From: Date: Thu, 04 Jul 2002 13:49:30 +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-13112@lists.php.net to get a copy of this message
ID: 13214 Updated by: sniper@php.net Reported By: gray@lowpass.net -Status: Open +Status: Closed Bug Type: FTP related Operating System: Linux PHP Version: 4.0.6 New Comment: This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. Applied that patch by matslin@orakel.ntnu.no (a bit modified version of it) Previous Comments: ------------------------------------------------------------------------ [2002-06-30 23:34:10] matslin@orakel.ntnu.no 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#13112) next »