@@ 964-967 (lines=4) @@ | ||
961 | $local = $this->getTempFile(); |
|
962 | $target = $this->_joinPath($targetDir, $name); |
|
963 | ||
964 | if (ftp_get($this->connect, $local, $source, FTP_BINARY) |
|
965 | && ftp_put($this->connect, $target, $local, $this->ftpMode($target))) { |
|
966 | $res = $target; |
|
967 | } |
|
968 | @unlink($local); |
|
969 | } |
|
970 | ||
@@ 1224-1230 (lines=7) @@ | ||
1221 | $this->rmdirRecursive($dir); |
|
1222 | return false; |
|
1223 | } |
|
1224 | } else { |
|
1225 | $target = $this->_joinPath($dstDir, $name); |
|
1226 | if (! ftp_put($this->connect, $target, $src, FTP_BINARY)) { |
|
1227 | $this->rmdirRecursive($dir); |
|
1228 | return false; |
|
1229 | } |
|
1230 | } |
|
1231 | $result[] = $target; |
|
1232 | } |
|
1233 | if (!$result) { |