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)