[dev]Gollem ... Fix for space in directory

Joel Vandal jvandal@subi.to
Wed, 10 Jul 2002 13:39:06 -0400


This is a multi-part message in MIME format.

---------------------- multipart/alternative attachment
Hi,

Here is a patch to solve the "change directory w/ space".

Solution is simple, first, change using ftp_chdir and finally =
ftp_rawlist on an "empty directory".

diff -r1.6 ftp.php
187,188c187,190
<         $list =3D @ftp_rawlist($this->_stream, $path, false);
<
---
>
>         @ftp_chdir($this->_stream, $path) ;
>         $list =3D @ftp_rawlist($this->_stream, "");
>

--
Joel

---------------------- multipart/alternative attachment
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Here is a patch to solve the "change =
directory w/=20
space".</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Solution is simple, first, change using =
ftp_chdir=20
and finally ftp_rawlist on an "empty directory".</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>diff -r1.6 <A=20
href=3D"ftp://ftp.php">ftp.php</A><BR>187,188c187,190<BR>&lt;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
$list =3D @ftp_rawlist($this-&gt;_stream, $path,=20
false);<BR>&lt;<BR>---<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
@ftp_chdir($this-&gt;_stream, $path)=20
;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $list =3D=20
@ftp_rawlist($this-&gt;_stream, "");<BR>&gt;<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>--</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Joel</DIV></FONT></BODY></HTML>

---------------------- multipart/alternative attachment--