fix: File Exception.php not found

This commit is contained in:
Guillermo Pages
2021-09-13 16:20:58 +02:00
parent 85ecae5365
commit 232fa35e6d
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
<?php
namespace Bsr\Utils\FileSystem\Exception;
class BadEnvException extends \Exception {}

View File

@@ -1,6 +1,8 @@
<?php <?php
namespace Bsr\Utils\FileSystem; namespace Bsr\Utils\FileSystem;
use Bsr\Utils\FileSystem\Exception\BadEnvException;
class FileSystem class FileSystem
{ {
/** /**
@@ -24,7 +26,7 @@ class FileSystem
if (!file_exists($buildPath . "/$part")) { if (!file_exists($buildPath . "/$part")) {
if (!is_writable($buildPath)) { if (!is_writable($buildPath)) {
if ($throw) { if ($throw) {
throw new Exception("Attempting to create : $path, but $buildPath is not writeable."); throw new BadEnvException("Attempting to create : $path, but $buildPath is not writeable.");
} }
return false; return false;
} }