spacedriveapp/spacedrive · error
Target entry not found
Error message
Target entry not found
What it means
Error "Target entry not found" thrown in spacedriveapp/spacedrive.
Source
Thrown at core/src/service/file_sync/resolver.rs:85
pub fn new(db: Arc<DatabaseConnection>) -> Self {
Self { db }
}
/// Calculate sync operations for a conduit
pub async fn calculate_operations(
&self,
conduit: &sync_conduit::Model,
) -> Result<SyncOperations> {
// Get source and target root entries
let source_root = entry::Entity::find_by_id(conduit.source_entry_id)
.one(&*self.db)
.await?
.ok_or_else(|| anyhow::anyhow!("Source entry not found"))?;
let target_root = entry::Entity::find_by_id(conduit.target_entry_id)
.one(&*self.db)
.await?
.ok_or_else(|| anyhow::anyhow!("Target entry not found"))?;
// Load all entries under each root
let source_entries = self
.get_entries_recursive(conduit.source_entry_id, &source_root)
.await?;
let target_entries = self
.get_entries_recursive(conduit.target_entry_id, &target_root)
.await?;
// Build path maps
let source_map = self.build_path_map(&source_entries);
let target_map = self.build_path_map(&target_entries);
let mode = sync_conduit::SyncMode::from_str(&conduit.sync_mode)
.ok_or_else(|| anyhow::anyhow!("Invalid sync mode"))?;
match mode {
sync_conduit::SyncMode::Mirror => Ok(self.resolve_mirror(&source_map, &target_map)),View on GitHub (pinned to 6dfeccf211)
When it happens
Trigger: Thrown at core/src/service/file_sync/resolver.rs:85 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of spacedriveapp/spacedrive@6dfeccf211 (2026-08-16).
Data as JSON: /api/errors/deb2abcd996c1c71.
Report an issue: GitHub.