mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-24 16:53:14 +08:00
fix compilation on windows
This commit is contained in:
@@ -12,7 +12,6 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/pkg/sftp"
|
||||
@@ -377,8 +376,14 @@ type EnhancedFileInfo struct {
|
||||
gid uint32
|
||||
}
|
||||
|
||||
// FileStat represents file statistics in a platform-independent way
|
||||
type FileStat struct {
|
||||
Uid uint32
|
||||
Gid uint32
|
||||
}
|
||||
|
||||
func (fi *EnhancedFileInfo) Sys() interface{} {
|
||||
return &syscall.Stat_t{Uid: fi.uid, Gid: fi.gid}
|
||||
return &FileStat{Uid: fi.uid, Gid: fi.gid}
|
||||
}
|
||||
|
||||
func (fi *EnhancedFileInfo) Owner() (uid, gid int) {
|
||||
|
||||
Reference in New Issue
Block a user