Skip to content

Commit

Permalink
sync: Fix sync failure by new relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Sep 2, 2024
1 parent ea050dd commit 747ab1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,8 @@ fn sync_threads(args: &SyncArgs, parser: &ParserMux, thr_context: &ThreadsContex
.and_then(|s| s.success())
}) {
let relative = relative_to_str(&task.relative, None);
let cwd = thr_context.download_dir.join(&relative);
// When relative is used to join with cwd, the heading `/` shall be removed.
let cwd = thr_context.download_dir.join(&relative[1..]);
debug!("cwd: {:?}, relative: {:?}", cwd, relative);
// exclude this?
// note that it only checks the relative folder!
Expand Down

0 comments on commit 747ab1f

Please sign in to comment.