src/File/FileSystem.php
public function createDirectory($pathToDirectory): bool
    {
        try {
            $this->filesystem->mkdir($pathToDirectory);
            return true;
        } catch (IOException $exception) {
            return false;
        }
    }
public function createDirectory($pathToDirectory): bool
    {
        try {
            $this->filesystem->mkdir($pathToDirectory);
            return true;
        } catch (IOException $exception) {
            return false;
        }
    }
@param string $pathToDirectory

@return bool