@workdir_loaded<EOL><INDENT>def add_prefix(self, name, *args, **kwargs):<DEDENT>
if os.path.exists(self.join(name)):<EOL><INDENT>raise LagoPrefixAlreadyExistsError(name, self.path)<EOL><DEDENT>self.prefixes[name] = self.prefix_class(<EOL>self.join(name), *args, **kwargs<EOL>)<EOL>self.prefixes[name].initialize()<EOL>if self.current is None:<EOL><INDENT>self.set_current(name)<EOL><DEDENT>return self.prefixes[name]<EOL>
Adds a new prefix to the workdir.

Args:
    name(str): Name of the new prefix to add
    *args: args to pass along to the prefix constructor
    *kwargs: kwargs to pass along to the prefix constructor

Returns:
    The newly created prefix

Raises:
    LagoPrefixAlreadyExistsError: if prefix name already exists in the
    workdir