Skip to content

Commit 685c56d

Browse files
XyLyXyRRoknozor
authored andcommitted
fix(code): create parent dirs before link
1 parent a46d906 commit 685c56d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/paths/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ impl DotPaths for Dot {
8686
return Ok(());
8787
}
8888
}
89+
if let Some(p) = target.parent() {
90+
fs::create_dir_all(p).ok();
91+
}
8992

9093
// Link
9194
unix::fs::symlink(copy_path, target)

0 commit comments

Comments
 (0)