From bed0ffd53aea82d4dcf13dcab922a52bbad97e25 Mon Sep 17 00:00:00 2001 From: SuperCuber Date: Sat, 25 Jun 2022 20:17:12 +0300 Subject: [PATCH] Fix typo --- src/filesystem.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/filesystem.rs b/src/filesystem.rs index d85c033..9fc7926 100644 --- a/src/filesystem.rs +++ b/src/filesystem.rs @@ -167,11 +167,11 @@ impl Filesystem for RealFilesystem { owner, link, target ); } - let real_target_path = real_path(target).context("get real path of source file")?; - if real_target_path.is_dir() { - fs::symlink_dir(real_target_path, link) + let real_source_path = real_path(target).context("get real path of source file")?; + if real_source_path.is_dir() { + fs::symlink_dir(real_source_path, link) } else { - fs::symlink_file(real_target_path, link) + fs::symlink_file(real_source_path, link) } .context("create symlink") }