(tokens []string)
| 228 | } |
| 229 | |
| 230 | func extractChownPaths(tokens []string) []string { |
| 231 | ownerFound := false |
| 232 | paths := []string{} |
| 233 | |
| 234 | for _, t := range tokens { |
| 235 | if t == "--" { |
| 236 | continue |
| 237 | } |
| 238 | if strings.HasPrefix(t, "-") { |
| 239 | continue |
| 240 | } |
| 241 | if !ownerFound { |
| 242 | ownerFound = true |
| 243 | continue |
| 244 | } |
| 245 | paths = append(paths, t) |
| 246 | } |
| 247 | |
| 248 | return paths |
| 249 | } |
| 250 | |
| 251 | func extractAllArgPaths(tokens []string) []string { |
| 252 | paths := []string{} |