MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / extractChownPaths

Function extractChownPaths

tools/bash/validation.go:230–249  ·  view source on GitHub ↗
(tokens []string)

Source from the content-addressed store, hash-verified

228}
229
230func 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
251func extractAllArgPaths(tokens []string) []string {
252 paths := []string{}

Callers 1

ExtractPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected