MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / Mode

Method Mode

pkg/gowebdav/file.go:41–48  ·  view source on GitHub ↗

Mode will return the mode of a given file

()

Source from the content-addressed store, hash-verified

39
40// Mode will return the mode of a given file
41func (f File) Mode() os.FileMode {
42 // TODO check webdav perms
43 if f.isdir {
44 return 0775 | os.ModeDir
45 }
46
47 return 0664
48}
49
50// ModTime returns the modified time of a file
51func (f File) ModTime() time.Time {

Callers 7

isSymlinkDirFunction · 0.45
tryCopyMethod · 0.45
CopyFileMethod · 0.45
CopyDirMethod · 0.45
fileToObjMethod · 0.45
CopyFileFunction · 0.45
CopyDirFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected