- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 58 for someFile (0.21 sec)
-
src/os/getwd.go
getwdCache.Unlock() if len(dir) > 0 { d, err := statNolog(dir) if err == nil && SameFile(dot, d) { return dir, nil } } // Root is a special case because it has no parent // and ends in a slash. root, err := statNolog("/") if err != nil { // Can't stat root - no hope. return "", err } if SameFile(root, dot) { return "/", nil } // General algorithm: find name in parent
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 28 06:28:02 UTC 2020 - 2.5K bytes - Viewed (0) -
src/os/types.go
// SameFile reports whether fi1 and fi2 describe the same file. // For example, on Unix this means that the device and inode fields // of the two underlying structures are identical; on other systems // the decision may be based on the path names. // SameFile only applies to results returned by this package's [Stat]. // It returns false in other cases. func SameFile(fi1, fi2 FileInfo) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 20:52:06 UTC 2024 - 2.9K bytes - Viewed (0) -
src/os/stat_test.go
t.Error(err) return } params.statCheck(t, path, sfi2) if !os.SameFile(sfi, sfi2) { t.Errorf("stat of open %q file and stat of %q should be the same", path, path) } if params.isLink { if os.SameFile(sfi2, lsfi) { t.Errorf("stat of opened %q file and lstat of %q should not be the same", path, path) } } else { if !os.SameFile(sfi2, lsfi) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:38:03 UTC 2024 - 7.8K bytes - Viewed (0) -
pkg/registry/core/event/storage/storage_test.go
} func validNewEvent(namespace string) *api.Event { someTime := metav1.MicroTime{Time: time.Unix(1505828956, 0)} return &api.Event{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", Namespace: namespace, }, InvolvedObject: api.ObjectReference{ Name: "bar", Namespace: namespace, }, EventTime: someTime, ReportingController: "test-controller",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 01 14:50:28 UTC 2020 - 3.4K bytes - Viewed (0) -
src/os/executable_test.go
t.Fatalf("Child returned %q, want an absolute path", out) } if !sameFile(outs, ep) { t.Fatalf("Child returned %q, not the same file as %q", out, ep) } } func sameFile(fn1, fn2 string) bool { fi1, err := os.Stat(fn1) if err != nil { return false } fi2, err := os.Stat(fn2) if err != nil { return false } return os.SameFile(fi1, fi2) } func init() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:32 UTC 2023 - 3.4K bytes - Viewed (0) -
pkg/kube/inject/testdata/inject/custom-template.iop.yaml
{{- range $index, $container := .Spec.Containers }} - name: {{ $container.Name }} env: - name: SOME_ENV value: "true" - name: SOME_FILE value: /var/lib/data/foo.json volumeMounts: - mountPath: /var/lib/data/foo.json subPath: foo.json name: some-injected-file {{- end}}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 06 23:34:59 UTC 2021 - 1.2K bytes - Viewed (0) -
src/os/dir_windows.go
func (d *dirInfo) init(h syscall.Handle) { d.h = h d.class = windows.FileFullDirectoryRestartInfo // The previous settings are enough to read the directory entries. // The following code is only needed to support os.SameFile. // It is safe to query d.vol once and reuse the value. // Hard links are not allowed to reference files in other volumes. // Junctions and symbolic links can reference files and directories in other volumes,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 20:52:06 UTC 2024 - 7.7K bytes - Viewed (0) -
pkg/kube/inject/testdata/inject/custom-template.yaml.injected
creationTimestamp: null labels: app: hello spec: containers: - env: - name: SOME_ENV value: "true" - name: SOME_FILE value: /var/lib/data/foo.json image: fake.docker.io/google-samples/hello-go-gke:1.0 name: hello readinessProbe: httpGet: port: 80 resources: {}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 25 05:41:41 UTC 2021 - 1.4K bytes - Viewed (0) -
src/os/types_unix.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 776 bytes - Viewed (0) -
platforms/ide/ide-native/src/test/groovy/org/gradle/ide/visualstudio/internal/DefaultVisualStudioProjectTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 4.5K bytes - Viewed (0)