diff --git a/src/paths/mod.rs b/src/paths/mod.rs index 02b5593c..1f08e252 100644 --- a/src/paths/mod.rs +++ b/src/paths/mod.rs @@ -76,6 +76,10 @@ impl DotPaths for Dot { } } + if let Some(parent) = target.parent() { + fs::create_dir_all(parent)?; + } + // Link unix::fs::symlink(copy_path, target) .map_err(|cause| {