- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for GetFileType (0.21 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) -
src/internal/poll/sendfile_windows.go
defer func() { TestHookDidSendFile(fd, 0, written, err, written > 0) }() if fd.kind == kindPipe { // TransmitFile does not work with pipes return 0, syscall.ESPIPE } if ft, _ := syscall.GetFileType(src); ft == syscall.FILE_TYPE_PIPE { return 0, syscall.ESPIPE } if err := fd.writeLock(); err != nil { return 0, err } defer fd.writeUnlock() o := &fd.wop o.handle = src
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 2.2K bytes - Viewed (0) -
src/os/stat_windows.go
defer syscall.CloseHandle(h) return statHandle(name, h) } return fi, err } func statHandle(name string, h syscall.Handle) (FileInfo, error) { ft, err := syscall.GetFileType(h) if err != nil { return nil, &PathError{Op: "GetFileType", Path: name, Err: err} } switch ft { case syscall.FILE_TYPE_PIPE, syscall.FILE_TYPE_CHAR: return &fileStat{name: filepathlite.Base(name), filetype: ft}, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:44:48 UTC 2024 - 5.2K 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) -
src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go
switch whence { case 0: w = FILE_BEGIN case 1: w = FILE_CURRENT case 2: w = FILE_END } hi := int32(offset >> 32) lo := int32(offset) // use GetFileType to check pipe, pipe can't do seek ft, _ := GetFileType(fd) if ft == FILE_TYPE_PIPE { return 0, syscall.EPIPE } rlo, e := SetFilePointer(fd, lo, &hi, w) if e != nil { return 0, e }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 22:18:42 UTC 2024 - 82.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
customizeCreate(req, resp); h.send(req, resp); info = resp; fileSize = resp.getEndOfFile(); this.fileLocator.updateType(resp.getFileType()); fh = new SmbFileHandleImpl(config, resp.getFid(), h, uncPath, flags, access, attrs, options, resp.getEndOfFile()); } else {
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Thu May 23 01:50:13 UTC 2024 - 82.3K bytes - Viewed (1) -
src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go
procGetFileTime = modkernel32.NewProc("GetFileTime") procGetFileType = modkernel32.NewProc("GetFileType") procGetFinalPathNameByHandleW = modkernel32.NewProc("GetFinalPathNameByHandleW") procGetFullPathNameW = modkernel32.NewProc("GetFullPathNameW")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 195.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"GetFileAttributes", Func, 0}, {"GetFileAttributesEx", Func, 0}, {"GetFileExInfoStandard", Const, 0}, {"GetFileExMaxInfoLevel", Const, 0}, {"GetFileInformationByHandle", Func, 0}, {"GetFileType", Func, 0}, {"GetFullPathName", Func, 0}, {"GetHostByName", Func, 0}, {"GetIfEntry", Func, 0}, {"GetLastError", Func, 0}, {"GetLengthSid", Func, 0}, {"GetLongPathName", Func, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)