Path : /var/www/clients/client0/web25/web/vendor/league/flysystem/src/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/clients/client0/web25/web/vendor/league/flysystem/src/UnableToCreateDirectory.php |
<?php declare(strict_types=1); namespace League\Flysystem; use RuntimeException; use Throwable; final class UnableToCreateDirectory extends RuntimeException implements FilesystemOperationFailed { /** * @var string */ private $location; public static function atLocation(string $dirname, string $errorMessage = '', ?Throwable $previous = null): UnableToCreateDirectory { $message = "Unable to create a directory at {$dirname}. {$errorMessage}"; $e = new static(rtrim($message), 0, $previous); $e->location = $dirname; return $e; } public static function dueToFailure(string $dirname, Throwable $previous): UnableToCreateDirectory { $message = "Unable to create a directory at {$dirname}"; $e = new static($message, 0, $previous); $e->location = $dirname; return $e; } public function operation(): string { return FilesystemOperationFailed::OPERATION_CREATE_DIRECTORY; } public function location(): string { return $this->location; } }