Browse Source

Manager: Create directories for holding symlinks when pushing/pulling

master
Riyyi 3 years ago
parent
commit
06042588ee
  1. 2
      src/dotfile.cpp

2
src/dotfile.cpp

@ -195,7 +195,7 @@ void Dotfile::sync(SyncType type,
// Create directory for the file // Create directory for the file
std::error_code error; 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(); auto directory = to.parent_path();
if (!directory.empty() && !std::filesystem::exists(directory)) { if (!directory.empty() && !std::filesystem::exists(directory)) {
if (Config::the().verbose()) { if (Config::the().verbose()) {

Loading…
Cancel
Save