added logs
This commit is contained in:
@@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user