pub fn run(
db: &Db,
library_id: i64,
home: &Path,
settings: &ImportSettings,
force: bool,
hub: &Sender<Event>,
notif_id: ViewId,
shutdown: &ShutdownSignal,
)Expand description
Runs a directory scan and syncs the database for one library.
When force is false (incremental mode), files whose stored mtime and
file_size have not changed since the last import are skipped without
re-fingerprinting. When force is true every file is re-fingerprinted
regardless of its stored values.
Sends pinned progress notifications to hub via notif_id while running.
Checks shutdown between entries and exits early if shutdown is requested.
On completion or early exit, closes the notification and returns.