Skip to main content
The config module handles reading, writing, and managing application configuration.

Config Class

Manages configuration information with file persistence.

Attributes

str
Path to the configuration file
str
Path to the application data folder
dict
Two-level dictionary containing all configuration values. First-level keys are section names, second-level keys are parameter names.
dict
Default configuration values

Methods

get_user_folders()

Returns a tuple of (config_folder_path, data_folder_path).
str
Path to configuration folder
str
Path to data folder

load_config()

Loads configuration from file and applies defaults.
bool
default:false
Whether to run in isolated mode

need_config()

Checks if username or password are missing from configuration.
bool
True if configuration is incomplete

write_configuration()

Writes current configuration to file with automatic backup.
Configuration is automatically backed up before writing. Legacy options are removed during the write process.

write_config_backup()

Creates a compressed backup of the configuration file.
str
Destination path for backup file (will append .tar.bz2 if not present)

Configuration Sections

Server Section

Server connection and authentication settings.

Transfers Section

File transfer and sharing settings.

Searches Section

Search-related settings.

Global Instance

A global config instance is available for import.