mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-22 15:40:07 -04:00
PathBuf is serialized with native OS separators (backslash on Windows). When a PullRequest is sent from Windows to macOS/Linux, the path C:\Users\alice\file.txt arrives as a string with backslashes which the receiving OS cannot resolve (backslash is a valid filename character on Unix, not a separator). Sender (strategy.rs): normalize source_path to forward slashes before building PullRequest, so the wire format is always OS-agnostic. Receiver (file_transfer.rs): convert forward slashes back to the native MAIN_SEPARATOR at the start of handle_pull_request, before any path operations (canonicalize, metadata, checksum, streaming).