- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for xreaddir (0.13 sec)
-
src/cmd/go/internal/load/pkg.go
// Otherwise it is not possible to vendor just a/b/c and still import the // non-vendored a/b. See golang.org/issue/13832. func hasGoFiles(dir string) bool { files, _ := os.ReadDir(dir) for _, f := range files { if !f.IsDir() && strings.HasSuffix(f.Name(), ".go") { return true } } return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods.go
} return parseGetSubIdsOutput(string(outUids)) } // Get a list of pods that have data directories. func (kl *Kubelet) listPodsFromDisk() ([]types.UID, error) { podInfos, err := os.ReadDir(kl.getPodsDir()) if err != nil { return nil, err } pods := []types.UID{} for i := range podInfos { if podInfos[i].IsDir() { pods = append(pods, types.UID(podInfos[i].Name())) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 101.2K bytes - Viewed (0)