euporie.core.path.fs_register_implementation
- euporie.core.path.fs_register_implementation(name, cls, clobber=False, errtxt=None)
Add implementation class to the registry
- Parameters:
name (str) – Protocol name to associate with the class
cls (class or str) – if a class: fsspec-compliant implementation class (normally inherits from
fsspec.AbstractFileSystem
, gets added straight to the registry. If a str, the full path to an implementation class like package.module.class, which gets added to known_implementations, so the import is deferred until the filesystem is actually used.clobber (bool (optional)) – Whether to overwrite a protocol with the same name; if False, will raise instead.
errtxt (str (optional)) – If given, then a failure to import the given class will result in this text being given.