|
@@ 684-687 (lines=4) @@
|
| 681 |
|
|
| 682 |
|
function mget($remote, $local=".", $continious=false) { |
| 683 |
|
$list=$this->rawlist($remote, "-lA"); |
| 684 |
|
if($list===false) { |
| 685 |
|
$this->PushError("mget","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents"); |
| 686 |
|
return FALSE; |
| 687 |
|
} |
| 688 |
|
if(empty($list)) return true; |
| 689 |
|
if(!@file_exists($local)) { |
| 690 |
|
if(!@mkdir($local)) { |
|
@@ 723-726 (lines=4) @@
|
| 720 |
|
|
| 721 |
|
function mdel($remote, $continious=false) { |
| 722 |
|
$list=$this->rawlist($remote, "-la"); |
| 723 |
|
if($list===false) { |
| 724 |
|
$this->PushError("mdel","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents"); |
| 725 |
|
return false; |
| 726 |
|
} |
| 727 |
|
|
| 728 |
|
foreach($list as $k=>$v) { |
| 729 |
|
$list[$k]=$this->parselisting($v); |
|
@@ 828-831 (lines=4) @@
|
| 825 |
|
|
| 826 |
|
function dirlist($remote) { |
| 827 |
|
$list=$this->rawlist($remote, "-la"); |
| 828 |
|
if($list===false) { |
| 829 |
|
$this->PushError("dirlist","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents"); |
| 830 |
|
return false; |
| 831 |
|
} |
| 832 |
|
|
| 833 |
|
$dirlist = array(); |
| 834 |
|
foreach($list as $k=>$v) { |