|
@@ 651-654 (lines=4) @@
|
| 648 |
|
|
| 649 |
|
function mput($local=".", $remote=NULL, $continious=false) { |
| 650 |
|
$local=realpath($local); |
| 651 |
|
if(!@file_exists($local)) { |
| 652 |
|
$this->PushError("mput","can't open local folder", "Cannot stat folder \"".$local."\""); |
| 653 |
|
return FALSE; |
| 654 |
|
} |
| 655 |
|
if(!is_dir($local)) return $this->put($local, $remote); |
| 656 |
|
if(empty($remote)) $remote="."; |
| 657 |
|
elseif(!$this->file_exists($remote) and !$this->mkdir($remote)) return FALSE; |
|
@@ 689-694 (lines=6) @@
|
| 686 |
|
return FALSE; |
| 687 |
|
} |
| 688 |
|
if(empty($list)) return true; |
| 689 |
|
if(!@file_exists($local)) { |
| 690 |
|
if(!@mkdir($local)) { |
| 691 |
|
$this->PushError("mget","can't create local folder", "Cannot create folder \"".$local."\""); |
| 692 |
|
return FALSE; |
| 693 |
|
} |
| 694 |
|
} |
| 695 |
|
foreach($list as $k=>$v) { |
| 696 |
|
$list[$k]=$this->parselisting($v); |
| 697 |
|
if( ! $list[$k] or $list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]); |