Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function exposeDirectory($source, $target) |
||
26 | { |
||
27 | // Remove destination directory to ensure it is clean |
||
28 | $this->filesystem->removeDirectory($target); |
||
29 | |||
30 | // Ensure parent dir exist |
||
31 | $parent = dirname($target); |
||
32 | $this->filesystem->ensureDirectoryExists($parent); |
||
33 | |||
34 | // Ensure symlink exists |
||
35 | $this->createLink($source, $target); |
||
36 | } |
||
52 |