@@ 211-220 (lines=10) @@ | ||
208 | * |
|
209 | * @return bool |
|
210 | */ |
|
211 | protected function createFile(string $path, $contents, bool $inBasePath = false) : bool |
|
212 | { |
|
213 | $path = $this->getPath($path, $inBasePath); |
|
214 | ||
215 | if (!$this->disk->exists($path)) { |
|
216 | return $this->disk->put($path, $contents); |
|
217 | } |
|
218 | ||
219 | return false; |
|
220 | } |
|
221 | ||
222 | /** |
|
223 | * @param string $path |
|
@@ 228-237 (lines=10) @@ | ||
225 | * |
|
226 | * @return bool |
|
227 | */ |
|
228 | protected function createDir(string $path, bool $inBasePath = false) : bool |
|
229 | { |
|
230 | $path = $this->getPath($path, $inBasePath); |
|
231 | ||
232 | if (!$this->disk->exists($path)) { |
|
233 | return $this->disk->makeDirectory($path); |
|
234 | } |
|
235 | ||
236 | return false; |
|
237 | } |
|
238 | ||
239 | /** |
|
240 | * @param string $path |
@@ 147-156 (lines=10) @@ | ||
144 | * |
|
145 | * @return bool |
|
146 | */ |
|
147 | protected function createFile(string $path, $contents) : bool |
|
148 | { |
|
149 | $path = $this->getPath($path); |
|
150 | ||
151 | if (!$this->disk->exists($path)) { |
|
152 | return $this->disk->put($path, $contents); |
|
153 | } |
|
154 | ||
155 | return false; |
|
156 | } |
|
157 | ||
158 | /** |
|
159 | * @param string $path |
@@ 155-164 (lines=10) @@ | ||
152 | * |
|
153 | * @return bool |
|
154 | */ |
|
155 | protected function createFile(string $path, $contents) : bool |
|
156 | { |
|
157 | $path = $this->getPath($path); |
|
158 | ||
159 | if (!$this->disk->exists($path)) { |
|
160 | return $this->disk->put($path, $contents); |
|
161 | } |
|
162 | ||
163 | return false; |
|
164 | } |
|
165 | ||
166 | /** |
|
167 | * @param string $path |