added logs

This commit is contained in:
2026-04-09 19:55:44 +02:00
parent 9dd36b340c
commit 083c66dca7
2 changed files with 39 additions and 4 deletions

View File

@@ -19,7 +19,8 @@ func processHardlinks(cfg *Config, contentPath, destSubdir string) error {
destDir := filepath.Join(cfg.DestBase, destSubdir)
if info.IsDir() {
return hardlinkDir(contentPath, destDir)
// Preserve the source directory name inside destDir
return hardlinkDir(contentPath, filepath.Join(destDir, filepath.Base(contentPath)))
}
return hardlinkFile(contentPath, filepath.Join(destDir, filepath.Base(contentPath)))
}