MCPcopy Create free account
hub / github.com/Moosync/Moosync / get_scan_paths

Function get_scan_paths

src-tauri/src/scanner/mod.rs:35–40  ·  view source on GitHub ↗
(preferences: &State<PreferenceConfig>)

Source from the content-addressed store, hash-verified

33
34#[tracing::instrument(level = "debug", skip(preferences))]
35fn get_scan_paths(preferences: &State<PreferenceConfig>) -> Result<Vec<String>> {
36 let tmp: Vec<String> = preferences.load_selective("music_paths".to_string())?;
37
38 // TODO: Filter using exclude paths
39 Ok(tmp)
40}
41
42#[derive(Default)]
43pub struct ScanTask {

Callers 1

start_scan_innerFunction · 0.85

Calls 1

load_selectiveMethod · 0.80

Tested by

no test coverage detected