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 6dbc7cc commit 36f86f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/archive/archive_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ func hasHardlinks(fi os.FileInfo) bool {
func getInodeFromStat(stat interface{}) (inode uint64, err error) {
s, ok := stat.(*syscall.ByHandleFileInformation)
if ok {
inode = s.VolumeSerialNumber
i64, err := cast.Int64(s.VolumeSerialNumber)
if err != nil {
return -1, err
}
inode = i64
}
return
}

0 comments on commit 36f86f4

Please sign in to comment.