- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 119 for isAbs (0.18 sec)
-
src/os/path_windows.go
// // The MSDN docs appear to say that a normal path that is 248 bytes long // will work; empirically the path must be less then 248 bytes long. pathLength := len(path) if !filepathlite.IsAbs(path) { // If the path is relative, we need to prepend the working directory // plus a separator to the path before we can determine if it's too long. // We don't want to call syscall.Getwd here, as that call is expensive to do
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:44:48 UTC 2024 - 4.7K bytes - Viewed (0) -
src/cmd/doc/main.go
// First, is it a complete package path as it is? If so, we are done. // This avoids confusion over package paths that have other // package paths as their prefix. var importErr error if filepath.IsAbs(arg) { pkg, importErr = build.ImportDir(arg, build.ImportComment) if importErr == nil { return pkg, arg, "", false } } else { pkg, importErr = build.Import(arg, wd, build.ImportComment)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 12.2K bytes - Viewed (0) -
src/os/exec/lp_windows.go
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, // dotErr is non-nil and we already checked it above.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 6K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/plugin/v1beta1/server.go
} // NewServer returns an initialized device plugin registration server. func NewServer(socketPath string, rh RegistrationHandler, ch ClientHandler) (Server, error) { if socketPath == "" || !filepath.IsAbs(socketPath) { return nil, fmt.Errorf(errBadSocket+" %s", socketPath) } dir, name := filepath.Split(socketPath)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jan 27 02:10:25 UTC 2024 - 5.4K bytes - Viewed (0) -
src/cmd/go/scriptconds_test.go
return conds } func defaultCCIsAbsolute(s *script.State) (bool, error) { GOOS, _ := s.LookupEnv("GOOS") GOARCH, _ := s.LookupEnv("GOARCH") defaultCC := cfg.DefaultCC(GOOS, GOARCH) if filepath.IsAbs(defaultCC) { if _, err := exec.LookPath(defaultCC); err == nil { return true, nil } } return false, nil } func ccIs(s *script.State, want string) (bool, error) { CC, _ := s.LookupEnv("CC")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 7.4K bytes - Viewed (0) -
internal/event/target/mqtt.go
if err != nil { return err } switch u.Scheme { case "ws", "wss", "tcp", "ssl", "tls", "tcps": default: return errors.New("unknown protocol in broker address") } if m.QueueDir != "" { if !filepath.IsAbs(m.QueueDir) { return errors.New("queueDir path should be absolute") } if m.QoS == 0 { return errors.New("qos should be set to 1 or 2 if queueDir is set") } } return nil }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8.2K bytes - Viewed (0) -
tests/integration/security/util/cert/cert.go
configMapName, err) } } return nil } func ReadSampleCertFromFile(f string) ([]byte, error) { filename := f if !path.IsAbs(filename) { filename = path.Join(env.IstioSrc, "samples/certs", f) } b, err := os.ReadFile(filename) if err != nil { return nil, err } return b, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Dec 15 16:44:37 UTC 2023 - 6.2K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/proxy.go
// complete URL. For all other paths, implicitly add "https://". if strings.ContainsAny(url, ".:/") && !strings.Contains(url, ":/") && !filepath.IsAbs(url) && !path.IsAbs(url) { url = "https://" + url } // Check that newProxyRepo accepts the URL. // It won't do anything with the path. if _, err := newProxyRepo(url, "golang.org/x/text"); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 03 15:21:05 UTC 2023 - 13K bytes - Viewed (0) -
src/internal/filepathlite/path.go
return FromSlash(out.string()) } // IsLocal is filepath.IsLocal. func IsLocal(path string) bool { return isLocal(path) } func unixIsLocal(path string) bool { if IsAbs(path) || path == "" { return false } hasDots := false for p := path; p != ""; { var part string part, p, _ = stringslite.Cut(p, "/") if part == "." || part == ".." { hasDots = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:50 UTC 2024 - 5.8K bytes - Viewed (0) -
hack/boilerplate/boilerplate.py
for pathname in files: if any(x in pathname for x in skipped_names): continue newfiles.append(pathname) for i, pathname in enumerate(newfiles): if not os.path.isabs(pathname): newfiles[i] = os.path.join(args.rootdir, pathname) return newfiles def get_files(extensions): files = [] if len(args.filenames) > 0: files = args.filenames
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:51 UTC 2024 - 7.2K bytes - Viewed (0)