Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for expandIfFilePattern (0.17 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/resource/builder.go

    		return false, err
    	}
    	return hasCombinedTypes || len(args) > 1, nil
    }
    
    // expandIfFilePattern returns all the filenames that match the input pattern
    // or the filename if it is a specific filename and not a pattern.
    // If the input is a pattern and it yields no result it will result in an error.
    func expandIfFilePattern(pattern string) ([]string, error) {
    	if _, err := os.Stat(pattern); os.IsNotExist(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 10:17:56 UTC 2023
    - 37.2K bytes
    - Viewed (0)
Back to top