protected function createPath(string $sPath): BaseMaker
    {
        if (!is_dir($sPath)) {
            if (!@mkdir($sPath, self::FILE_PERMISSION, true)) {
                throw new DoesNotExistException('Path "' . $sPath . '" does not exist and could not be created');
            }
        }

        if (!is_writable($sPath)) {
            throw new IsNotWritableException('Path "' . $sPath . '" exists, but is not writable');
        }

        return $this;
    }
protected function createPath(string $sPath): BaseMaker
    {
        if (!is_dir($sPath)) {
            if (!@mkdir($sPath, self::FILE_PERMISSION, true)) {
                throw new DoesNotExistException('Path "' . $sPath . '" does not exist and could not be created');
            }
        }

        if (!is_writable($sPath)) {
            throw new IsNotWritableException('Path "' . $sPath . '" exists, but is not writable');
        }

        return $this;
    }
protected function createPath ( string $ sPath ) : BaseMaker { if ( ! is_dir ( $ sPath ) ) { if ( ! @ mkdir ( $ sPath , self :: FILE_PERMISSION , true ) ) { throw new DoesNotExistException ( 'Path "' . $ sPath . '" does not exist and could not be created' ) ; } } if ( ! is_writable ( $ sPath ) ) { throw new IsNotWritableException ( 'Path "' . $ sPath . '" exists, but is not writable' ) ; } return $ this ; }
Creates a new path

@param string $sPath The path to create

@return $this
@throws DoesNotExistException
@throws IsNotWritableException
Creates a new path