private function validatePath(string $path) : string
    {
        if (!is_dir($path) && !mkdir($path, 0755, true)) {
            throw new ENabuCoreException(ENabuCoreException::ERROR_HOST_PATH_NOT_FOUND, array($path));
        }

        return $path;
    }
private function validatePath(string $path) : string
    {
        if (!is_dir($path) && !mkdir($path, 0755, true)) {
            throw new ENabuCoreException(ENabuCoreException::ERROR_HOST_PATH_NOT_FOUND, array($path));
        }

        return $path;
    }
private function validatePath ( string $ path ) : string { if ( ! is_dir ( $ path ) && ! mkdir ( $ path , 0755 , true ) ) { throw new ENabuCoreException ( ENabuCoreException :: ERROR_HOST_PATH_NOT_FOUND , array ( $ path ) ) ; } return $ path ; }
Validates a path to ensure that it exists and is available. If not exists tries to create it.
@param string $path Path to validate.
@return string Returns the path for convenience.
@throws ENabuCoreException Raises an exception if the path does not exists.
Validates a path to ensure that it exists and is available . If not exists tries to create it .