(token string, pathValue string, currentPath string, source fileStatProvider)
| 861 | } |
| 862 | |
| 863 | func expandDeletePatternToken(token string, pathValue string, currentPath string, source fileStatProvider) ([]string, error) { |
| 864 | if !hasWildcard(token) { |
| 865 | return []string{token}, nil |
| 866 | } |
| 867 | if pathValue != "" && !path.IsAbs(token) && strings.Contains(token, "/") { |
| 868 | return nil, fmt.Errorf("shell: wildcard expansion with -p does not support nested remote paths: %s", token) |
| 869 | } |
| 870 | return expandRemotePatternToken(token, pathValue, currentPath, source, pathValue != "") |
| 871 | } |
| 872 | |
| 873 | func expandRemotePatternToken(token string, pathValue string, currentPath string, source fileStatProvider, preferRelative bool) ([]string, error) { |
| 874 | if !hasWildcard(token) { |
no test coverage detected