traefik/vendor/github.com/containerd/continuity/resource_windows.go

13 lines
286 B
Go
Raw Normal View History

2018-01-22 11:16:03 +00:00
package continuity
import "os"
// newBaseResource returns a *resource, populated with data from p and fi,
// where p will be populated directly.
func newBaseResource(p string, fi os.FileInfo) (*resource, error) {
return &resource{
paths: []string{p},
mode: fi.Mode(),
}, nil
}