Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CheckFilePath (0.13 sec)

  1. src/cmd/vendor/golang.org/x/mod/module/module.go

    // (The excluded punctuation characters, " * < > ? ` ' | / \ and :,
    // have special meanings in certain shells or operating systems.)
    //
    // CheckFilePath may be less restrictive in the future, but see the
    // top-level package documentation for additional information about
    // subtleties of Unicode.
    func CheckFilePath(path string) error {
    	if err := checkPath(path, filePath); err != nil {
    		return &InvalidPathError{Kind: "file", Path: path, Err: err}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  2. src/cmd/go/internal/load/pkg.go

    // can't or won't be included in modules and therefore shouldn't be treated
    // as existing for embedding.
    func isBadEmbedName(name string) bool {
    	if err := module.CheckFilePath(name); err != nil {
    		return true
    	}
    	switch name {
    	// Empty string should be impossible but make it bad.
    	case "":
    		return true
    	// Version control directories won't be present in module.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top