Total Complexity | 8 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class FileSystem extends SymphonyFilesystem |
||
7 | { |
||
8 | public function clone($src, $dest){ |
||
9 | $src = $this->getFullSourcePath($src); |
||
10 | |||
11 | $dest = base_path($dest); |
||
12 | |||
13 | if (is_dir($src)) { |
||
14 | $this->mirror($src, $dest."/".basename($src)); |
||
15 | } else { |
||
16 | $this->copy($src, $dest); |
||
17 | } |
||
18 | } |
||
19 | |||
20 | public function getFullSourcePath($path) { |
||
21 | return realpath(__DIR__."/../resources/".$path); |
||
22 | } |
||
23 | |||
24 | public function removeDir($dir) { |
||
40 | } |
||
41 | } |
||
42 |