Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for absPath (0.15 sec)

  1. src/path/filepath/path_test.go

    		t.Fatalf("%s: %s", root, err)
    	}
    
    	abspath, err := filepath.Abs("")
    	if err != nil {
    		t.Fatalf(`Abs("") error: %v`, err)
    	}
    	absinfo, err := os.Stat(abspath)
    	if err != nil || !os.SameFile(absinfo, info) {
    		t.Errorf(`Abs("")=%q, not the same file`, abspath)
    	}
    	if !filepath.IsAbs(abspath) {
    		t.Errorf(`Abs("")=%q, not an absolute path`, abspath)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  2. cmd/importverifier/importverifier.go

    func isPathUnder(base, path string) (bool, error) {
    	absBase, err := filepath.Abs(base)
    	if err != nil {
    		return false, err
    	}
    	absPath, err := filepath.Abs(path)
    	if err != nil {
    		return false, err
    	}
    
    	relPath, err := filepath.Rel(absBase, absPath)
    	if err != nil {
    		return false, err
    	}
    
    	// if path is below base, the relative path
    	// from base to path will not start with `../`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:16 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. src/net/http/cgi/host_test.go

    }
    
    func TestCGIBasicGetAbsPath(t *testing.T) {
    	absPath, err := filepath.Abs(os.Args[0])
    	if err != nil {
    		t.Fatal(err)
    	}
    	testenv.MustHaveExec(t)
    	h := &Handler{
    		Path: absPath,
    		Root: "/test.cgi",
    	}
    	expectedMap := map[string]string{
    		"env-REQUEST_URI":     "/test.cgi?foo=bar&a=b",
    		"env-SCRIPT_FILENAME": absPath,
    		"env-SCRIPT_NAME":     "/test.cgi",
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 18:29:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. cmd/update.go

    	// Convert to absolute path
    	absPath, err := filepath.Abs(path)
    	if err != nil {
    		return t, fmt.Errorf("Unable to get absolute path of %s. %w", path, err)
    	}
    
    	// Version is minio non-standard, we will use minio binary's
    	// ModTime as release time.
    	fi, err := Stat(absPath)
    	if err != nil {
    		return t, fmt.Errorf("Unable to get ModTime of %s. %w", absPath, err)
    	}
    
    	// Return the ModTime
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  5. hack/verify-flags-underscore.py

            l = list(new_excluded_flags)
            l.sort()
            print(("%s" % "\n".join(l)))
            sys.exit(1)
    
    def main():
        rootdir = os.path.dirname(__file__) + "/../"
        rootdir = os.path.abspath(rootdir)
    
        if len(args.filenames) > 0:
            files = args.filenames
        else:
            files = get_all_files(rootdir)
    
        check_underscore_in_flags(rootdir, files)
    
    if __name__ == "__main__":
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:51 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/work/gccgo.go

    			args = append(args, "-ffile-prefix-map="+b.WorkDir+"=/tmp/go-build")
    		}
    		if fsys.OverlayFile != "" {
    			for _, name := range gofiles {
    				absPath := mkAbs(p.Dir, name)
    				overlayPath, ok := fsys.OverlayPath(absPath)
    				if !ok {
    					continue
    				}
    				toPath := absPath
    				// gccgo only applies the last matching rule, so also handle the case where
    				// BuildTrimpath is true and the path is relative to base.Cwd().
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 02 22:18:34 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. hack/boilerplate/boilerplate.py

    parser = argparse.ArgumentParser()
    parser.add_argument(
        "filenames", help="list of files to check, all files if unspecified", nargs="*"
    )
    
    rootdir = os.path.dirname(__file__) + "/../../"
    rootdir = os.path.abspath(rootdir)
    parser.add_argument("--rootdir", default=rootdir, help="root directory to examine")
    
    default_boilerplate_dir = os.path.join(rootdir, "hack/boilerplate")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. cmd/endpoint.go

    func checkCrossDeviceMounts(endpoints Endpoints) (err error) {
    	var absPaths []string
    	for _, endpoint := range endpoints {
    		if endpoint.IsLocal {
    			var absPath string
    			absPath, err = filepath.Abs(endpoint.Path)
    			if err != nil {
    				return err
    			}
    			absPaths = append(absPaths, absPath)
    		}
    	}
    	return mountinfo.CheckCrossDevice(absPaths)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/cmd/server/testing/testserver.go

    	}
    	err = wait.Poll(100*time.Millisecond, time.Minute, func() (bool, error) {
    		select {
    		case err := <-errCh:
    			return false, err
    		default:
    		}
    
    		result := client.CoreV1().RESTClient().Get().AbsPath("/healthz").Do(context.TODO())
    		status := 0
    		result.StatusCode(&status)
    		if status == 200 {
    			return true, nil
    		}
    		return false, nil
    	})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 9K bytes
    - Viewed (1)
  10. cmd/kubeadm/app/util/apiclient/wait.go

    		context.Background(),
    		constants.KubernetesAPICallRetryInterval,
    		w.timeout,
    		true, func(ctx context.Context) (bool, error) {
    			healthStatus := 0
    			w.client.Discovery().RESTClient().Get().AbsPath("/healthz").Do(ctx).StatusCode(&healthStatus)
    			if healthStatus != http.StatusOK {
    				return false, nil
    			}
    			return true, nil
    		})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top