- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isdir (0.12 sec)
-
cni/pkg/nodeagent/podcgroupns.go
return &PodNetnsEntry{ uid: uid, netns: netns, netnsfd: fd, inode: inode, }, nil } func isProcess(entry fs.DirEntry) bool { // check if it is a directory if !entry.IsDir() { return false } // check if it is a number if strings.IndexFunc(entry.Name(), isNotNumber) != -1 { return false } return true } func GetFd(f fs.File) (uintptr, error) {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 11K bytes - Viewed (0) -
operator/cmd/mesh/manifest-generate_test.go
return filepath.Walk(src, func(path string, info fs.FileInfo, err error) error { if err != nil { return err } outpath := filepath.Join(dest, strings.TrimPrefix(path, src)) if info.IsDir() { os.MkdirAll(outpath, info.Mode()) return nil } cpErr := file.AtomicCopy(path, filepath.Dir(outpath), filepath.Base(outpath)) if cpErr != nil { return cpErr } return nil })
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Apr 18 18:16:49 GMT 2024 - 43.5K bytes - Viewed (0)