|
@@ 41-43 (lines=3) @@
|
| 38 |
|
|
| 39 |
|
public function get($src, $dest = null) |
| 40 |
|
{ |
| 41 |
|
if (is_file($src) && is_dir($dest)) { |
| 42 |
|
$dest = $dest . DIRECTORY_SEPARATOR . basename($src); |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
$this->dispatcher->dispatch(TransporterEvents::TRANSPORTER_GET, new TransporterEvent($this, array('src' => $src, 'dest' => $dest))); |
| 46 |
|
|
|
@@ 65-67 (lines=3) @@
|
| 62 |
|
throw new \InvalidArgumentException(sprintf('Resource \'%s\' does not exist', $src)); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
if (is_file($src) && is_dir($dest)) { |
| 66 |
|
$dest = $dest . DIRECTORY_SEPARATOR . basename($src); |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
if (is_file($src)) { |
| 70 |
|
$file = new \SplFileInfo($src); |