- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for SplitPath (0.2 sec)
-
src/os/export_unix_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build unix || (js && wasm) || wasip1 package os
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 241 bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery.go
} func (r *groupDiscoveryHandler) unsetDiscovery(group string) { r.discoveryLock.Lock() defer r.discoveryLock.Unlock() delete(r.discovery, group) } // splitPath returns the segments for a URL path. func splitPath(path string) []string { path = strings.Trim(path, "/") if path == "" { return []string{} } return strings.Split(path, "/")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 10:06:31 UTC 2017 - 3.2K bytes - Viewed (0) -
platforms/ide/ide-native/src/main/groovy/org/gradle/ide/visualstudio/tasks/internal/RelativeFileNameTransformer.java
return relativePath.length() == 0 ? "." : relativePath; } private String findRelativePath(String from, String to) { LinkedList<String> fromPath = splitPath(from); LinkedList<String> toPath = splitPath(to); List<String> relativePath = new ArrayList<String>(); while (!fromPath.isEmpty() && !toPath.isEmpty() && fromPath.get(0).equals(toPath.get(0))) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 3.5K bytes - Viewed (0) -
src/os/path_unix.go
) // IsPathSeparator reports whether c is a directory separator character. func IsPathSeparator(c uint8) bool { return PathSeparator == c } // splitPath returns the base name and parent directory. func splitPath(path string) (string, string) { // if no better parent is found, the path is relative from "here" dirname := "." // Remove all but one leading slash.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:44:48 UTC 2024 - 1.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/ModelPath.java
BY_PATH = new Cache(ROOT); } private final String path; private final String[] components; private final ModelPath parent; public ModelPath(String path) { this(path, splitPath(path)); } private ModelPath(String path, String[] components) { // one should really avoid using this constructor as it is totally inefficient
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 11.2K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go
} func header() http.Header { header := http.Header{} header.Set("Content-Type", runtime.ContentTypeJSON) return header } // splitPath returns the segments for a URL path. func splitPath(path string) []string { path = strings.Trim(path, "/") if path == "" { return []string{} } return strings.Split(path, "/") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 02 09:47:52 UTC 2023 - 25.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/request/requestinfo.go
func RequestInfoFrom(ctx context.Context) (*RequestInfo, bool) { info, ok := ctx.Value(requestInfoKey).(*RequestInfo) return info, ok } // splitPath returns the segments for a URL path. func splitPath(path string) []string { path = strings.Trim(path, "/") if path == "" { return []string{} } return strings.Split(path, "/")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 23 13:24:29 UTC 2023 - 9.8K bytes - Viewed (0) -
cmd/iam-object-store.go
policyDBUsersListKey = "policydb/users/" policyDBSTSUsersListKey = "policydb/sts-users/" policyDBGroupsListKey = "policydb/groups/" ) // splitPath splits a path into a top-level directory and a child item. The // parent directory retains the trailing slash. func splitPath(s string, lastIndex bool) (string, string) { var i int if lastIndex { i = strings.LastIndex(s, "/") } else { i = strings.Index(s, "/") }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 19.5K bytes - Viewed (0) -
pkg/test/echo/server/forwarder/config.go
// Extract the host from the headers and then remove it. c.hostHeader = c.headers.Get(hostHeader) c.headers.Del(hostHeader) c.urlHost, c.urlPath = splitPath(c.Request.Url) c.method = c.Request.Method if c.method == "" { c.method = "GET" } if i := strings.IndexByte(c.Request.Url, ':'); i > 0 { c.scheme = scheme.Instance(strings.ToLower(c.Request.Url[0:i]))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Oct 08 09:39:20 UTC 2023 - 9.8K bytes - Viewed (0) -
src/os/removeall_at.go
err := Remove(path) if err == nil || IsNotExist(err) { return nil } // RemoveAll recurses by deleting the path base from // its parent directory parentDir, base := splitPath(path) parent, err := Open(parentDir) if IsNotExist(err) { // If parent does not exist, base cannot exist. Fail silently return nil } if err != nil { return err } defer parent.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:09:26 UTC 2024 - 4.8K bytes - Viewed (0)