We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fce663f commit 0e746dbCopy full SHA for 0e746db
src/FileTrait.php
@@ -189,9 +189,10 @@ protected function fileLoadMultiple(array $conditions = []) {
189
* @Given unmanaged file :uri created
190
*/
191
public function fileCreateUnmanaged($uri, $content = 'test') {
192
- $dir = dirname($uri);
+ $dir = \Drupal::service('file_system')->dirname($uri);
193
+
194
if (!file_exists($dir)) {
- mkdir($dir, 0770, TRUE);
195
+ $dir = \Drupal::service('file_system')->dirname($dir, 0770, TRUE);
196
}
197
198
file_put_contents($uri, $content);
0 commit comments