| @@ 959-962 (lines=4) @@ | ||
| 956 | $local = $this->getTempFile(); |
|
| 957 | $target = $this->_joinPath($targetDir, $name); |
|
| 958 | ||
| 959 | if (ftp_get($this->connect, $local, $source, FTP_BINARY) |
|
| 960 | && ftp_put($this->connect, $target, $local, $this->ftpMode($target))) { |
|
| 961 | $res = $target; |
|
| 962 | } |
|
| 963 | @unlink($local); |
|
| 964 | } |
|
| 965 | ||
| @@ 1219-1225 (lines=7) @@ | ||
| 1216 | $this->rmdirRecursive($dir); |
|
| 1217 | return false; |
|
| 1218 | } |
|
| 1219 | } else { |
|
| 1220 | $target = $this->_joinPath($dstDir, $name); |
|
| 1221 | if (! ftp_put($this->connect, $target, $src, FTP_BINARY)) { |
|
| 1222 | $this->rmdirRecursive($dir); |
|
| 1223 | return false; |
|
| 1224 | } |
|
| 1225 | } |
|
| 1226 | $result[] = $target; |
|
| 1227 | } |
|
| 1228 | if (!$result) { |
|