spacedriveapp/spacedrive · error

No paths to copy

Error message

No paths to copy

What it means

Error "No paths to copy" thrown in spacedriveapp/spacedrive.

Source

Thrown at core/src/service/file_sync/mod.rs:209

			);

			// Extract device slug from first entry (simplified)
			// In production, this should be more robust
			let device_slug = crate::device::get_current_device_slug();

			// Create SdPaths from entries
			let source_paths: Vec<SdPath> = operations
				.to_copy
				.iter()
				.map(|e| e.to_sdpath(device_slug.clone()))
				.collect();

			// For MVP, use the first entry's parent as destination
			// In production, this should use the target entry's path
			let destination = if let Some(first) = source_paths.first() {
				first.clone()
			} else {
				return Err(anyhow::anyhow!("No paths to copy"));
			};

			let mut job = FileCopyJob::new(SdPathBatch::new(source_paths), destination);
			job = job.with_options(CopyOptions {
				overwrite: true, // File sync should overwrite
				..Default::default()
			});

			let handle = jobs.dispatch(job).await?;
			Some(handle.id())
		} else {
			None
		};

		let delete_job_id = if !operations.to_delete.is_empty() {
			info!(
				"{}: Dispatching delete job for {} files",
				direction,

View on GitHub (pinned to 6dfeccf211)

When it happens

Trigger: Thrown at core/src/service/file_sync/mod.rs:209 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/7b7ebd4221a5d7b0. Report an issue: GitHub.