@@ 55-65 (lines=11) @@ | ||
52 | ||
53 | $fs = new Filesystem(); |
|
54 | ||
55 | foreach ($paths as $path) { |
|
56 | if ( |
|
57 | $removeIfExists && |
|
58 | $fs->exists($path) |
|
59 | ) { |
|
60 | $fs->remove($path); |
|
61 | } |
|
62 | ||
63 | $fs->mkdir($paths); |
|
64 | $fs->chmod($path, 0777); |
|
65 | } |
|
66 | } |
|
67 | ||
68 | /** |
|
@@ 104-114 (lines=11) @@ | ||
101 | { |
|
102 | $fs = new Filesystem(); |
|
103 | ||
104 | foreach ($paths as $path) { |
|
105 | if ( |
|
106 | $removeIfExists && |
|
107 | $fs->exists($path) |
|
108 | ) { |
|
109 | $fs->remove($path); |
|
110 | } |
|
111 | ||
112 | $fs->touch($path); |
|
113 | $fs->chmod($path, 0777); |
|
114 | } |
|
115 | } |
|
116 | } |
|
117 |