Skip to content

Commit e681a8f

Browse files
committed
feat: add fs method mkSubDirs quick make sub dirs
1 parent 6ed0c4c commit e681a8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Directory.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public static function create(string $path, int $mode = 0665, bool $recursive =
239239
}
240240

241241
/**
242-
* quick make sub-dirs in the given parent dir.
242+
* Quick make sub-dirs in the given parent dir.
243243
*
244244
* @param string $parentDir
245245
* @param array $subDirs
@@ -254,8 +254,9 @@ public static function mkSubDirs(string $parentDir, array $subDirs, int $mode =
254254
}
255255

256256
foreach ($subDirs as $subPath) {
257-
257+
self::create($parentDir . '/' . $subPath, $mode);
258258
}
259+
259260
return true;
260261
}
261262

0 commit comments

Comments
 (0)