From 06042588ee7d5ed513cad0c02f289289096cf361 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Tue, 1 Mar 2022 16:57:39 +0100 Subject: [PATCH] Manager: Create directories for holding symlinks when pushing/pulling --- src/dotfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotfile.cpp b/src/dotfile.cpp index 17829bb..c954c24 100644 --- a/src/dotfile.cpp +++ b/src/dotfile.cpp @@ -195,7 +195,7 @@ void Dotfile::sync(SyncType type, // Create directory for the file std::error_code error; - if (std::filesystem::is_regular_file(from)) { + if (std::filesystem::is_regular_file(from) || std::filesystem::is_symlink(from)) { auto directory = to.parent_path(); if (!directory.empty() && !std::filesystem::exists(directory)) { if (Config::the().verbose()) {