Skip to content

Commit

Permalink
trying to check what happen on window
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Bustamante <[email protected]>
  • Loading branch information
jjbustamante committed Nov 8, 2023
1 parent e137dd8 commit 4ac7c43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/archive/archive_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ package archive

import (
"os"
"syscall"
)

func hasHardlinks(fi os.FileInfo) bool {
return fi.Sys().(*syscall.Stat_t).Nlink > 1
return fi.Sys().(*os.winSys).Nlink > 1
}

func getInodeFromStat(stat interface{}) (inode uint64, err error) {
s, ok := stat.(*syscall.Stat_t)
s, ok := stat.(*syscall.winSys)
if ok {
inode = s.Ino
}
Expand Down

0 comments on commit 4ac7c43

Please sign in to comment.