MCPcopy
hub / github.com/git-lfs/git-lfs / getFileMode

Function getFileMode

tools/filetools_test.go:262–268  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

260}
261
262func getFileMode(filename string) os.FileMode {
263 s, err := os.Stat(filename)
264 if err != nil {
265 return 0000
266 }
267 return s.Mode()
268}
269
270// uniq creates an element-wise copy of "xs" containing only unique elements in
271// the same order.

Callers 1

TestSetWriteFlagFunction · 0.85

Calls 1

ModeMethod · 0.80

Tested by

no test coverage detected