diff --git a/reference/ftp/functions/ftp-mlsd.xml b/reference/ftp/functions/ftp-mlsd.xml new file mode 100644 index 0000000000..aa48d32315 --- /dev/null +++ b/reference/ftp/functions/ftp-mlsd.xml @@ -0,0 +1,205 @@ + + + + + ftp_mlsd + Returns a list of files in the given directory + + + &reftitle.description; + + arrayftp_mlsd + resourceftp_stream + stringdirectory + + + + &reftitle.parameters; + + + + ftp_stream + + + The link identifier of the FTP connection. + + + + + directory + + + The directory to be listed. + + + + + + + + &reftitle.returnvalues; + + Returns an array of arrays with file infos from the specified directory on success or + &false; on error. + + + + &reftitle.examples; + + + <function>ftp_mlsd</function> example + + +]]> + + &example.outputs.similar; + + + array(8) { + ["name"]=> + string(1) "." + ["modify"]=> + string(14) "20171212154511" + ["perm"]=> + string(7) "flcdmpe" + ["type"]=> + string(4) "cdir" + ["unique"]=> + string(11) "811U5740002" + ["UNIX.group"]=> + string(2) "33" + ["UNIX.mode"]=> + string(4) "0755" + ["UNIX.owner"]=> + string(2) "33" + } + [1]=> + array(8) { + ["name"]=> + string(2) ".." + ["modify"]=> + string(14) "20171212154511" + ["perm"]=> + string(7) "flcdmpe" + ["type"]=> + string(4) "pdir" + ["unique"]=> + string(11) "811U5740002" + ["UNIX.group"]=> + string(2) "33" + ["UNIX.mode"]=> + string(4) "0755" + ["UNIX.owner"]=> + string(2) "33" + } + [2]=> + array(8) { + ["name"]=> + string(11) "public_html" + ["modify"]=> + string(14) "20171211171525" + ["perm"]=> + string(7) "flcdmpe" + ["type"]=> + string(3) "dir" + ["unique"]=> + string(11) "811U5740525" + ["UNIX.group"]=> + string(2) "33" + ["UNIX.mode"]=> + string(4) "0755" + ["UNIX.owner"]=> + string(2) "33" + } + [3]=> + array(8) { + ["name"]=> + string(10) "public_ftp" + ["modify"]=> + string(14) "20171211174536" + ["perm"]=> + string(7) "flcdmpe" + ["type"]=> + string(3) "dir" + ["unique"]=> + string(11) "811U57405EE" + ["UNIX.group"]=> + string(2) "33" + ["UNIX.mode"]=> + string(4) "0755" + ["UNIX.owner"]=> + string(2) "33" + } + [4]=> + array(8) { + ["name"]=> + string(3) "www" + ["modify"]=> + string(14) "www" + ["perm"]=> + string(7) "flcdmpe" + ["type"]=> + string(3) "dir" + ["unique"]=> + string(11) "811U5740780" + ["UNIX.group"]=> + string(2) "33" + ["UNIX.mode"]=> + string(4) "0755" + ["UNIX.owner"]=> + string(2) "33" + } +} +]]> + + + + + + &reftitle.seealso; + + + ftp_rawlist + ftp_nlist + + + + + + diff --git a/reference/ftp/functions/ftp-nlist.xml b/reference/ftp/functions/ftp-nlist.xml index 8fcdc2764f..0185c5b8f0 100644 --- a/reference/ftp/functions/ftp-nlist.xml +++ b/reference/ftp/functions/ftp-nlist.xml @@ -90,6 +90,7 @@ array(3) { ftp_rawlist + ftp_mlsd diff --git a/reference/ftp/functions/ftp-rawlist.xml b/reference/ftp/functions/ftp-rawlist.xml index be8b359d07..d3ee7dbfe1 100644 --- a/reference/ftp/functions/ftp-rawlist.xml +++ b/reference/ftp/functions/ftp-rawlist.xml @@ -109,6 +109,7 @@ array(3) { ftp_nlist + ftp_mlsd diff --git a/reference/ftp/versions.xml b/reference/ftp/versions.xml index 398968146c..7c6aa69d20 100644 --- a/reference/ftp/versions.xml +++ b/reference/ftp/versions.xml @@ -19,6 +19,7 @@ +