create()¶
- audbackend.create(name, host, repository)[source]¶
Create repository.
Creates
repository
located athost
on the backend with aliasname
(seeaudbackend.register()
).Note
For legacy reasons the method returns an (undocumented) instance of
audbackend.interface.Versioned
. Since the return value might be removed in a future version it is not recommended to use it.Warning
audbackend.create()
is deprecated and will be removed in version 2.2.0. Repositories on backends are instead created by the class methodcreate()
for the desired backend, e.g.audbackend.backend.FileSystem.create()
.- Parameters
- Raises
BackendError – if an error is raised on the backend, e.g. repository exists already or cannot be created
ValueError – if no backend class with alias
name
has been registered