fix: &self -> &mut self fuer Methoden die known_checksums aendern
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2428dabed7
commit
eb49a034ed
|
|
@ -87,7 +87,7 @@ impl SyncEngine {
|
|||
}
|
||||
|
||||
/// Virtual sync: create .cloud placeholder files
|
||||
async fn sync_virtual(&self, entries: &[FileEntry], local_dir: &Path,
|
||||
async fn sync_virtual(&mut self, entries: &[FileEntry], local_dir: &Path,
|
||||
server_path: &str, log: &mut Vec<String>) {
|
||||
for entry in entries {
|
||||
let local_path = local_dir.join(&entry.name);
|
||||
|
|
@ -189,7 +189,7 @@ impl SyncEngine {
|
|||
}
|
||||
|
||||
/// Upload new local files that don't exist on server yet (for both Virtual + Full mode)
|
||||
async fn sync_upload_new(&self, server_entries: &[FileEntry], local_dir: &Path,
|
||||
async fn sync_upload_new(&mut self, server_entries: &[FileEntry], local_dir: &Path,
|
||||
parent_id: Option<i64>, log: &mut Vec<String>) {
|
||||
let server_names: std::collections::HashSet<String> = server_entries.iter()
|
||||
.map(|e| e.name.clone()).collect();
|
||||
|
|
@ -323,7 +323,7 @@ impl SyncEngine {
|
|||
}
|
||||
|
||||
/// Full sync: upload new/changed local files
|
||||
async fn sync_full_upload(&self, server_entries: &[FileEntry], local_dir: &Path,
|
||||
async fn sync_full_upload(&mut self, server_entries: &[FileEntry], local_dir: &Path,
|
||||
parent_id: Option<i64>, log: &mut Vec<String>) {
|
||||
let server_names: HashMap<String, &FileEntry> = server_entries.iter()
|
||||
.map(|e| (e.name.clone(), e))
|
||||
|
|
|
|||
Loading…
Reference in New Issue