Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for cleanPath (0.28 sec)

  1. pkg/kubelet/cm/util/cgroups_linux.go

    // getCgroupV1Path gets the file path to the "devices" subsystem of the desired cgroup.
    // cgroupPath is the path in the cgroup hierarchy.
    func getCgroupV1Path(cgroupPath string) (string, error) {
    	cgroupPath = libcontainerutils.CleanPath(cgroupPath)
    
    	mnt, root, err := libcontainercgroups.FindCgroupMountpointAndRoot(cgroupPath, "devices")
    	// If we didn't mount the subsystem, there is no point we make the path.
    	if err != nil {
    		return "", err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 12 07:50:19 UTC 2020
    - 2.9K bytes
    - Viewed (0)
  2. src/net/http/server_test.go

    		in, want string
    	}{
    		{"//", "/"},
    		{"/x", "/x"},
    		{"//x", "/x"},
    		{"x//", "/x/"},
    		{"a//b/////c", "/a/b/c"},
    		{"/foo/../bar/./..//baz", "/baz"},
    	} {
    		got := cleanPath(test.in)
    		if got != test.want {
    			t.Errorf("%s: got %q, want %q", test.in, got, test.want)
    		}
    	}
    }
    
    func BenchmarkServerMatch(b *testing.B) {
    	fn := func(w ResponseWriter, r *Request) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 13:54:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. pkg/volume/util/volumepathhandler/volume_path_handler_linux.go

    		if backingFilePath == path || backingFilePath == realPath {
    			return fmt.Sprintf("/dev/%s", filepath.Base(device)), nil
    		}
    	}
    
    	return "", errors.New(ErrDeviceNotFound)
    }
    
    // cleanPath remove any trailing substrings that are not part of the backing file path.
    func cleanBackingFilePath(path string) string {
    	// If the block device was deleted, the path will contain a "(deleted)" suffix
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. src/net/http/servemux121.go

    		}
    
    		return mux.handler(r.Host, r.URL.Path)
    	}
    
    	// All other requests have any port stripped and path cleaned
    	// before passing to mux.handler.
    	host := stripHostPort(r.Host)
    	path := cleanPath(r.URL.Path)
    
    	// If the given path is /tree and its handler is not registered,
    	// redirect for /tree/.
    	if u, ok := mux.redirectToPathSlash(host, path, r.URL); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:40:38 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. src/net/http/pattern.go

    	// At this point, rest is the path.
    	off += i
    
    	// An unclean path with a method that is not CONNECT can never match,
    	// because paths are cleaned before matching.
    	if method != "" && method != "CONNECT" && rest != cleanPath(rest) {
    		return nil, errors.New("non-CONNECT pattern with unclean path can never match")
    	}
    
    	seenNames := map[string]bool{} // remember wildcard names to catch dups
    	for len(rest) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. src/net/http/server.go

    }
    
    // DefaultServeMux is the default [ServeMux] used by [Serve].
    var DefaultServeMux = &defaultServeMux
    
    var defaultServeMux ServeMux
    
    // cleanPath returns the canonical path for p, eliminating . and .. elements.
    func cleanPath(p string) string {
    	if p == "" {
    		return "/"
    	}
    	if p[0] != '/' {
    		p = "/" + p
    	}
    	np := path.Clean(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/filesystem_interface.h

      /// structure in Section 4).
      ///
      /// This function will be called by core TensorFlow to clean up all path
      /// arguments for all other methods in the filesystem API.
      ///
      /// DEFAULT IMPLEMENTATION: Uses `io::CleanPath` and `io::ParseURI`.
      char* (*translate_name)(const TF_Filesystem* filesystem, const char* uri);
    
      /// Finds all entries in the directory given by `path`.
      ///
      /// The returned entries are paths relative to `path`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 17:36:54 UTC 2022
    - 53.1K bytes
    - Viewed (0)
  8. pkg/ctrlz/assets/static/js/jquery-3.2.1.slim.min.js

    eof a&&!Aa.test(a)&&!ma[(ka.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c<d;c++)b=this[c]||{},1===b.nodeType&&(r.cleanData(na(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ja(this,arguments,function(b){var c=this.parentNode;r.inArray(this,a)<0&&(r.cleanData(na(this)),c&&c.replaceChild(b,this))},a)}}),r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",repl...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 68K bytes
    - Viewed (0)
  9. src/main/webapp/js/jquery-3.6.3.min.js

    eof e&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;E.inArray(this,n)<0&&(E.cleanData(ye(this)),t&&t.replaceChild(e,this))},n)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",repl...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 87.8K bytes
    - Viewed (0)
  10. fess-crawler/src/test/resources/ajax/js/jquery-2.1.1.min.js

    rentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},...
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Sun Oct 11 02:16:55 UTC 2015
    - 82.3K bytes
    - Viewed (0)
Back to top