archivebox.config.pathsο
Module Contentsο
Functionsο
Get a short, stable, unique ID for the current collection (e.g. abc45678) |
|
Get a short, stable, unique ID for the current machine (e.g. abc45678) |
|
Get a short, stable, unique type identifier for the current machine (e.g. linux-x86_64-docker) |
|
Check if a given directory is writable by a specific user and group (fallback=try as current user is unable to check with provided uid) |
|
Check if a given directory can contain unix sockets (e.g. /tmp/supervisord.sock) |
|
Dataο
APIο
- archivebox.config.paths.get_collection_id(DATA_DIR=DATA_DIR) str[source]ο
Get a short, stable, unique ID for the current collection (e.g. abc45678)
- archivebox.config.paths.get_machine_id() str[source]ο
Get a short, stable, unique ID for the current machine (e.g. abc45678)
- archivebox.config.paths.get_machine_type() str[source]ο
Get a short, stable, unique type identifier for the current machine (e.g. linux-x86_64-docker)
- archivebox.config.paths.dir_is_writable(dir_path: pathlib.Path, uid: int | None = None, gid: int | None = None, fallback=True, chown=True) bool[source]ο
Check if a given directory is writable by a specific user and group (fallback=try as current user is unable to check with provided uid)
- archivebox.config.paths.assert_dir_can_contain_unix_sockets(dir_path: pathlib.Path) bool[source]ο
Check if a given directory can contain unix sockets (e.g. /tmp/supervisord.sock)
- archivebox.config.paths.get_or_create_working_tmp_dir(autofix=True, quiet=True, config: ArchiveBoxConfig | None = None, **config_kwargs)[source]ο
- archivebox.config.paths.get_or_create_working_lib_dir(autofix=True, quiet=False, config: ArchiveBoxConfig | None = None, **config_kwargs)[source]ο
- archivebox.config.paths.get_data_locations(config: ArchiveBoxConfig | None = None, **config_kwargs)[source]ο
- archivebox.config.paths.get_code_locations(config: ArchiveBoxConfig | None = None, **config_kwargs)[source]ο