pub fn fs_sync_rebase(msg: &[u8], cwd: Option<&str>) -> Option<Vec<u8>>Expand description
Rebase a FROM_PTY C2S_FS_SYNC onto a resolved cwd: join cwd/path
and clear FROM_PTY, producing a plain path-based sync the handler
consumes unchanged. cwd None (source pty gone) keeps path verbatim.
Any exclude field rides along — the filter is the client’s, not the
pty’s, and dropping it here would silently widen the sync.