|
@@ 785-788 (lines=4) @@
|
| 782 |
|
$local = $this->tmp.DIRECTORY_SEPARATOR.md5($source); |
| 783 |
|
$target = $targetDir.DIRECTORY_SEPARATOR.$name; |
| 784 |
|
|
| 785 |
|
if (ftp_get($this->connect, $local, $source, FTP_BINARY) |
| 786 |
|
&& ftp_put($this->connect, $target, $local, $this->ftpMode($target))) { |
| 787 |
|
$res = $target; |
| 788 |
|
} |
| 789 |
|
@unlink($local); |
| 790 |
|
} |
| 791 |
|
|
|
@@ 1028-1032 (lines=5) @@
|
| 1025 |
|
break; |
| 1026 |
|
} |
| 1027 |
|
$targetPath = $newPath . DIRECTORY_SEPARATOR . $filename; |
| 1028 |
|
if (is_dir($filename)) { |
| 1029 |
|
$success = $this->_mkdir($newPath, $filename); |
| 1030 |
|
} else { |
| 1031 |
|
$success = ftp_put($this->connect, $targetPath, $filename, FTP_BINARY); |
| 1032 |
|
} |
| 1033 |
|
} |
| 1034 |
|
unset($filename); |
| 1035 |
|
|