2014-11-13 15:36:05 -05:00
|
|
|
// +build windows
|
|
|
|
|
|
|
|
package system
|
|
|
|
|
|
|
|
import (
|
2015-05-07 18:14:11 -04:00
|
|
|
"os"
|
|
|
|
"time"
|
2014-11-13 15:36:05 -05:00
|
|
|
)
|
|
|
|
|
2015-05-07 18:14:11 -04:00
|
|
|
type Stat_t struct {
|
|
|
|
name string
|
|
|
|
size int64
|
|
|
|
mode os.FileMode
|
|
|
|
modTime time.Time
|
|
|
|
isDir bool
|
2014-11-13 15:36:05 -05:00
|
|
|
}
|
2015-03-11 11:42:49 -04:00
|
|
|
|
2015-05-07 18:14:11 -04:00
|
|
|
func (s Stat_t) Name() string {
|
|
|
|
return s.name
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Stat_t) Size() int64 {
|
|
|
|
return s.size
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Stat_t) Mode() os.FileMode {
|
|
|
|
return s.mode
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Stat_t) ModTime() time.Time {
|
|
|
|
return s.modTime
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Stat_t) IsDir() bool {
|
|
|
|
return s.isDir
|
2015-03-11 11:42:49 -04:00
|
|
|
}
|