MCPcopy Create free account
hub / github.com/chatmail/core / maybe_add_file

Function maybe_add_file

src/sql.rs:1106–1110  ·  view source on GitHub ↗
(files_in_use: &mut HashSet<String>, file: &str)

Source from the content-addressed store, hash-verified

1104}
1105
1106fn maybe_add_file(files_in_use: &mut HashSet<String>, file: &str) {
1107 if let Some(file) = file.strip_prefix("$BLOBDIR/") {
1108 files_in_use.insert(file.to_string());
1109 }
1110}
1111
1112async fn maybe_add_from_param(
1113 sql: &Sql,

Callers 4

remove_unused_filesFunction · 0.85
maybe_add_from_paramFunction · 0.85
test_maybe_add_fileFunction · 0.85
test_is_file_in_useFunction · 0.85

Calls 1

insertMethod · 0.80

Tested by 2

test_maybe_add_fileFunction · 0.68
test_is_file_in_useFunction · 0.68