MCPcopy Create free account
hub / github.com/pydio/cells / StatFlagsFromString

Function StatFlagsFromString

common/proto/tree/node.go:131–139  ·  view source on GitHub ↗

StatFlagsFromString parses a string of flags separated by dashes

(s string)

Source from the content-addressed store, hash-verified

129
130// StatFlagsFromString parses a string of flags separated by dashes
131func StatFlagsFromString(s string) Flags {
132 var flags Flags
133 for _, ss := range strings.Split(s, "-") {
134 if i, e := strconv.Atoi(ss); e == nil {
135 flags = append(flags, uint32(i))
136 }
137 }
138 return flags
139}
140
141// AsMeta returns a map of headers to be sent to the client
142func (f Flags) AsMeta() map[string]string {

Callers 1

ReadNodeStreamMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…