- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for isdir (0.17 sec)
-
istioctl/pkg/validate/validate.go
continue } isDir = fi.IsDir() } if !isDir { processFile(filename) processedFiles[filename] = true continue } if err := processDirectory(filename, func(path string) { processFile(path) processedFiles[path] = true }); err != nil { errs = multierror.Append(errs, err) } }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Jan 22 17:58:52 GMT 2024 - 15K bytes - Viewed (0) -
istioctl/pkg/workload/workload_test.go
"internalIP": "10.10.10.10", "ingressIP": "10.10.10.11", }, "ipv6": { "internalIP": "fd00:10:96::1", "ingressIP": "fd00:10:96::2", }, } for _, dir := range files { if !dir.IsDir() { continue } testdir := path.Join("testdata/vmconfig", dir.Name()) t.Cleanup(func() { for k := range generated { os.Remove(path.Join(testdir, k)) } })
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Mar 27 16:59:05 GMT 2024 - 14.6K bytes - Viewed (0) -
istioctl/pkg/analyze/analyze.go
} r = os.Stdin readers = append(readers, local.ReaderSource{Name: f, Reader: r}) continue } fi, err := os.Stat(f) if err != nil { return nil, err } if fi.IsDir() { dirReaders, err := gatherFilesInDirectory(cmd, f) if err != nil { return nil, err } readers = append(readers, dirReaders...) } else { if !isValidFile(f) {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 02 08:32:06 GMT 2024 - 17K bytes - Viewed (0) -
cni/pkg/install/binaries.go
copiedFilenames := sets.String{} srcFiles, err := os.ReadDir(srcDir) if err != nil { return copiedFilenames, err } for _, f := range srcFiles { if f.IsDir() { continue } filename := f.Name() srcFilepath := filepath.Join(srcDir, filename) for _, targetDir := range targetDirs { if err := file.AtomicCopy(srcFilepath, targetDir, filename); err != nil {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Dec 11 19:10:54 GMT 2023 - 1.5K bytes - Viewed (0) -
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)