| @@ 58-68 (lines=11) @@ | ||
| 55 | ||
| 56 | $fs = new Filesystem(); |
|
| 57 | ||
| 58 | foreach ($paths as $path) { |
|
| 59 | if ( |
|
| 60 | $removeIfExists && |
|
| 61 | $fs->exists($path) |
|
| 62 | ) { |
|
| 63 | $fs->remove($path); |
|
| 64 | } |
|
| 65 | ||
| 66 | $fs->mkdir($paths); |
|
| 67 | $fs->chmod($path, 0777); |
|
| 68 | } |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| @@ 113-123 (lines=11) @@ | ||
| 110 | { |
|
| 111 | $fs = new Filesystem(); |
|
| 112 | ||
| 113 | foreach ($paths as $path) { |
|
| 114 | if ( |
|
| 115 | $removeIfExists && |
|
| 116 | $fs->exists($path) |
|
| 117 | ) { |
|
| 118 | $fs->remove($path); |
|
| 119 | } |
|
| 120 | ||
| 121 | $fs->touch($path); |
|
| 122 | $fs->chmod($path, 0777); |
|
| 123 | } |
|
| 124 | } |
|
| 125 | } |
|
| 126 | ||