mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-02 11:44:45 -06:00
Support for hardlinks to symlinks
This is a specialized use-case, but it is indeed possible to do this and can be used if xattrs are attached to the symlink.
This commit is contained in:
@@ -125,6 +125,10 @@ func (entry *Entry) RestoreSpecial(fullPath string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func MakeHardlink(source string, target string) error {
|
||||
return os.Link(source, target)
|
||||
}
|
||||
|
||||
func joinPath(components ...string) string {
|
||||
|
||||
combinedPath := `\\?\` + filepath.Join(components...)
|
||||
|
||||
Reference in New Issue
Block a user