github.com/gnuhub/docker@v1.6.0/pkg/system/stat_windows.go (about)

     1  // +build windows
     2  
     3  package system
     4  
     5  import (
     6  	"errors"
     7  	"syscall"
     8  )
     9  
    10  func fromStatT(s *syscall.Win32FileAttributeData) (*Stat_t, error) {
    11  	return nil, errors.New("fromStatT should not be called on windows path")
    12  }
    13  
    14  func Stat(path string) (*Stat_t, error) {
    15  	// should not be called on cli code path
    16  	return nil, ErrNotSupportedPlatform
    17  }