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

@@ -1,6 +1,8 @@
<?php
namespace Bsr\Utils\FileSystem;
use Bsr\Utils\FileSystem\Exception\BadEnvException;
class FileSystem
{
/**
@@ -24,7 +26,7 @@ class FileSystem
if (!file_exists($buildPath . "/$part")) {
if (!is_writable($buildPath)) {
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;
}