Manager: Create directories for holding symlinks when pushing/pulling

This commit is contained in:
Riyyi
2022-03-01 16:57:39 +01:00
parent 59fe52202b
commit 06042588ee
+1 -1
View File
@@ -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()) {