Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 8,277 for path$ (2.69 sec)

  1. src/internal/filepathlite/path.go

    func Base(path string) string {
    	if path == "" {
    		return "."
    	}
    	// Strip trailing slashes.
    	for len(path) > 0 && IsPathSeparator(path[len(path)-1]) {
    		path = path[0 : len(path)-1]
    	}
    	// Throw away volume name
    	path = path[len(VolumeName(path)):]
    	// Find the last element
    	i := len(path) - 1
    	for i >= 0 && !IsPathSeparator(path[i]) {
    		i--
    	}
    	if i >= 0 {
    		path = path[i+1:]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/validation/field/path.go

    	}
    	return c.path
    }
    
    // Path represents the path from some root to a particular field.
    type Path struct {
    	name   string // the name of this field or "" if this is an index
    	index  string // if name == "", this is a subscript (index or map key) of the previous element
    	parent *Path  // nil if this is the root element
    }
    
    // NewPath creates a root Path object.
    func NewPath(name string, moreNames ...string) *Path {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 11 08:23:53 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  3. src/path/path.go

    // If the path is empty, Base returns ".".
    // If the path consists entirely of slashes, Base returns "/".
    func Base(path string) string {
    	if path == "" {
    		return "."
    	}
    	// Strip trailing slashes.
    	for len(path) > 0 && path[len(path)-1] == '/' {
    		path = path[0 : len(path)-1]
    	}
    	// Find the last element
    	if i := bytealg.LastIndexByteString(path, '/'); i >= 0 {
    		path = path[i+1:]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 23 17:33:57 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. src/os/path.go

    // If there is an error, it will be of type [*PathError].
    func RemoveAll(path string) error {
    	return removeAll(path)
    }
    
    // endsWithDot reports whether the final component of path is ".".
    func endsWithDot(path string) bool {
    	if path == "." {
    		return true
    	}
    	if len(path) >= 2 && path[len(path)-1] == '.' && IsPathSeparator(path[len(path)-2]) {
    		return true
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:09 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authorization/path/path.go

    limitations under the License.
    */
    
    package path
    
    import (
    	"context"
    	"fmt"
    	"strings"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    )
    
    // NewAuthorizer returns an authorizer which accepts a given set of paths.
    // Each path is either a fully matching path or it ends in * in case a prefix match is done. A leading / is optional.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 09 13:47:19 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  6. operator/pkg/util/path.go

    	EscapedPathSeparator = "\\" + PathSeparator
    )
    
    // ValidKeyRegex is a regex for a valid path key element.
    var ValidKeyRegex = regexp.MustCompile("^[a-zA-Z0-9_-]*$")
    
    // Path is a path in slice form.
    type Path []string
    
    // PathFromString converts a string path of form a.b.c to a string slice representation.
    func PathFromString(path string) Path {
    	path = filepath.Clean(path)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  7. src/path/filepath/path.go

    // Join(base, path) will always produce a path contained within base and
    // Clean(path) will always produce an unrooted path with no ".." path elements.
    //
    // IsLocal is a purely lexical operation.
    // In particular, it does not account for the effect of any symbolic links
    // that may exist in the filesystem.
    func IsLocal(path string) bool {
    	return filepathlite.IsLocal(path)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. src/cmd/go/internal/base/path.go

    }
    
    // ShortPath returns an absolute or relative name for path, whatever is shorter.
    func ShortPath(path string) string {
    	if rel, err := filepath.Rel(Cwd(), path); err == nil && len(rel) < len(path) {
    		return rel
    	}
    	return path
    }
    
    // RelPaths returns a copy of paths with absolute paths
    // made relative to the current directory if they would be shorter.
    func RelPaths(paths []string) []string {
    	var out []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 20 19:17:27 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. src/cmd/go/internal/str/path.go

    			// Joining a relative path to a bare Windows drive letter produces a path
    			// relative to the working directory on that drive, but the original path
    			// was absolute, not relative. Keep the leading path separator so that it
    			// remains absolute when joined to prefix.
    		} else {
    			// Prefix ends in a regular path element, so strip the path separator that
    			// follows it.
    			trimmed = trimmed[1:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:02 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/util/Path.java

        /**
         * Appends the supplied path to this path, returning the new path.
         * The resulting path with be absolute or relative based on the path being appended _to_.
         * It makes no difference if the _appended_ path is absolute or relative.
         *
         * <pre>
         * path(':a:b').append(path(':c:d')) == path(':a:b:c:d')
         * path(':a:b').append(path('c:d')) == path(':a:b:c:d')
         * path('a:b').append(path(':c:d')) == path('a:b:c:d')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 13:03:23 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top