Factor out hard link code for cross platform build

Move system specific code out of entry so the build continues to work on
Windows. Hard links are not currently supported on Windows, the behavior
is a no-op.
This commit is contained in:
2023-10-05 12:00:30 -05:00
parent c782def49b
commit 381d4a7159
3 changed files with 49 additions and 34 deletions

View File

@@ -110,6 +110,12 @@ func SetOwner(fullPath string, entry *Entry, fileInfo *os.FileInfo) bool {
return true
}
type listEntryLinkKey struct{}
func (entry *Entry) getHardLinkKey(f os.FileInfo) (key listEntryLinkKey, linked bool) {
return
}
func (entry *Entry) ReadAttributes(top string) {
}