- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GetFileType (0.13 sec)
-
pkg/volume/hostpath/host_path.go
return false } pathType, err := ftc.hu.GetFileType(ftc.path) if err != nil { return false } return string(pathType) == string(v1.HostPathFile) } func (ftc *fileTypeChecker) MakeFile() error { return makeFile(ftc.path) } func (ftc *fileTypeChecker) IsDir() bool { if !ftc.Exists() { return false } pathType, err := ftc.hu.GetFileType(ftc.path) if err != nil { return false
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 15.3K bytes - Viewed (0) -
pkg/volume/local/local.go
} kvh, ok := plugin.host.(volume.KubeletVolumeHost) if !ok { return "", fmt.Errorf("plugin volume host does not implement KubeletVolumeHost interface") } fileType, err := kvh.GetHostUtil().GetFileType(spec.PersistentVolume.Spec.Local.Path) if err != nil { return "", err } switch fileType { case hostutil.FileTypeDirectory: return spec.PersistentVolume.Spec.Local.Path, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 22.2K bytes - Viewed (0) -
src/os/types_windows.go
LastAccessTime syscall.Filetime LastWriteTime syscall.Filetime FileSizeHigh uint32 FileSizeLow uint32 // from Win32finddata and GetFileInformationByHandleEx ReparseTag uint32 // what syscall.GetFileType returns filetype uint32 // used to implement SameFile sync.Mutex path string vol uint32 idxhi uint32 idxlo uint32 appendNameToPath bool }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:44:48 UTC 2024 - 11.7K bytes - Viewed (0) -
src/os/file_windows.go
func newFile(h syscall.Handle, name string, kind string) *File { if kind == "file" { var m uint32 if syscall.GetConsoleMode(h, &m) == nil { kind = "console" } if t, err := syscall.GetFileType(h); err == nil && t == syscall.FILE_TYPE_PIPE { kind = "pipe" } } f := &File{&file{ pfd: poll.FD{ Sysfd: h, IsStream: true, ZeroReadIsEOF: true, }, name: name,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 15:38:38 UTC 2024 - 13.4K bytes - Viewed (0)