aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_windows.go
blob: 39490c625c03e94d0036c535dfc5c9b0b037c328 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// +build windows

package system

import (
	"os"
	"time"
)

// StatT type contains status of a file. It contains metadata
// like name, permission, size, etc about a file.
type StatT struct {
	name    string
	size    int64
	mode    os.FileMode
	modTime time.Time
	isDir   bool
}

// Name returns file's name.
func (s StatT) Name() string {
	return s.name
}

// Size returns file's size.
func (s StatT) Size() int64 {
	return s.size
}

// Mode returns file's permission mode.
func (s StatT) Mode() os.FileMode {
	return s.mode
}

// ModTime returns file's last modification time.
func (s StatT) ModTime() time.Time {
	return s.modTime
}

// IsDir returns whether file is actually a directory.
func (s StatT) IsDir() bool {
	return s.isDir
}