@@ -13,7 +13,7 @@ class FileSystem
1313 public function findFile (string $ directory , string $ fileName , ?string $ extension = null ): string |null
1414 {
1515 if ($ this ->is_dir ($ directory )) return $ this ->recursiveSearchNameFileCaseInsensitive ($ directory , $ fileName , $ extension , 0 );
16- else throw FileSystemException::folderNotExist ();
16+ else throw FileSystemException::folderNotExist ($ directory );
1717 }
1818 /**
1919 * @return string[]
@@ -22,7 +22,7 @@ public function findFile(string $directory, string $fileName, ?string $extension
2222 public function findFiles (string $ directory , ?string $ extension = null , int $ level = 1 ): array
2323 {
2424 if ($ this ->is_dir ($ directory )) return $ this ->recursiveSearchFiles ($ directory , $ extension , $ level );
25- else throw FileSystemException::folderNotExist ();
25+ else throw FileSystemException::folderNotExist ($ directory );
2626 }
2727 /** @param string|string[] $folders */
2828 public function findFolder (string |array $ folders ): bool
@@ -64,7 +64,7 @@ public function is_dir(string &$directory): bool
6464 /** @throws FileSystemException */
6565 public static function mkdir (string $ directory ): void
6666 {
67- mkdir ($ directory , 0755 , true ) ?: throw FileSystemException::createForbidden ();
67+ mkdir ($ directory , 0755 , true ) ?: throw FileSystemException::createForbidden ($ directory );
6868 }
6969 public function recursiveSearchNameFileCaseInsensitive (string $ directory , string $ fileName , ?string $ extension = null , int $ level = -1 ): string |null
7070 {
0 commit comments