Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 66 for someFile (0.21 sec)

  1. internal/ioutil/ioutil_test.go

    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	if !SameFile(fi1, fi2) {
    		t.Fatal("Expected the files to be same")
    	}
    	if err = os.WriteFile(tmpFile, []byte("aaa"), 0o644); err != nil {
    		t.Fatal(err)
    	}
    	fi2, err = os.Stat(tmpFile)
    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	if SameFile(fi1, fi2) {
    		t.Fatal("Expected the files not to be same")
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/internal/upload/findwork.go

    			}
    		}
    	}
    
    	fis, err = os.ReadDir(uploaddir)
    	if err != nil {
    		os.MkdirAll(uploaddir, 0777)
    		return ans
    	}
    	// There should be only one of these per day; maybe sometime
    	// we'll want to clean the directory.
    	ans.uploaded = make(map[string]bool)
    	for _, fi := range fis {
    		if strings.HasSuffix(fi.Name(), ".json") {
    			u.logger.Printf("Already uploaded: %s", fi.Name())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverResult.java

         * {@linkplain org.apache.maven.api.JavaPathType#patchModule(String) handled in a special way}.
         *
         * <h4>Design note</h4>
         * All types of path are determined together because they are sometime mutually exclusive.
         * For example, an artifact of type {@value org.apache.maven.api.Type#JAR} can be placed
         * either on the class-path or on the module-path. The project needs to make a choice
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. src/database/sql/convert_test.go

    	return []conversionTest{
    		// Exact conversions (destination pointer type matches source type)
    		{s: "foo", d: &scanstr, wantstr: "foo"},
    		{s: 123, d: &scanint, wantint: 123},
    		{s: someTime, d: &scantime, wanttime: someTime},
    
    		// To strings
    		{s: "string", d: &scanstr, wantstr: "string"},
    		{s: []byte("byteslice"), d: &scanstr, wantstr: "byteslice"},
    		{s: 123, d: &scanstr, wantstr: "123"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. src/os/os_test.go

    				}
    				info, err := n.Info()
    				if err != nil {
    					t.Errorf("%s: Info: %v", m, err)
    					continue
    				}
    				if !SameFile(info, lstat) {
    					t.Errorf("%s: Info: SameFile(info, lstat) = false", m)
    				}
    			}
    			if !found {
    				t.Error("could not find", m)
    			}
    		}
    		if s == nil {
    			t.Error("ReadDir returned nil instead of empty slice")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  6. src/internal/testenv/testenv_test.go

    	if err != nil {
    		t.Fatalf("testenv.GoTool(): %v", err)
    	}
    	t.Logf("testenv.GoTool() = %q", goTool)
    
    	gotInfo, err := os.Stat(goTool)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !os.SameFile(wantInfo, gotInfo) {
    		t.Fatalf("%q is not the same file as %q", absWant, goTool)
    	}
    }
    
    func TestHasGoBuild(t *testing.T) {
    	if !testenv.HasGoBuild() {
    		switch runtime.GOOS {
    		case "js", "wasip1":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 23:12:44 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. src/os/exec/lp_windows.go

    				// out that the explicit one doesn't match.
    				dotfi, dotfiErr := os.Lstat(dotf)
    				fi, fiErr := os.Lstat(f)
    				if dotfiErr != nil || fiErr != nil || !os.SameFile(dotfi, fi) {
    					return dotf, dotErr
    				}
    			}
    
    			if !filepath.IsAbs(f) {
    				if execerrdot.Value() != "0" {
    					// If this is the same relative path that we already found,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. cmd/peer-rest-client.go

    	go func() {
    		for {
    			client.doListen(ctx, listenCh, v)
    			select {
    			case <-ctx.Done():
    				return
    			default:
    				// There was error in the REST request, retry after sometime as probably the peer is down.
    				time.Sleep(5 * time.Second)
    			}
    		}
    	}()
    }
    
    // Trace - send http trace request to peer nodes
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  9. src/os/example_test.go

    	// on the original target path.
    	dstInfo, err := os.Stat(dstAbs)
    	if err != nil {
    		log.Fatal(err)
    	}
    	targetInfo, err := os.Stat(targetPath)
    	if err != nil {
    		log.Fatal(err)
    	}
    	if !os.SameFile(dstInfo, targetInfo) {
    		log.Fatalf("link destination (%s) is not the same file as %s", dstAbs, targetPath)
    	}
    
    	// Output:
    	// hello.link links to hello.txt
    }
    
    func ExampleUserCacheDir() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 17:35:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/unicode/norm/forminfo.go

    // Note that the recomposition map for NFC and NFKC are identical.
    
    // combine returns the combined rune or 0 if it doesn't exist.
    //
    // The caller is responsible for calling
    // recompMapOnce.Do(buildRecompMap) sometime before this is called.
    func combine(a, b rune) rune {
    	key := uint32(uint16(a))<<16 + uint32(uint16(b))
    	if recompMap == nil {
    		panic("caller error") // see func comment
    	}
    	return recompMap[key]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top