Mode will return the mode of a given file
()
| 39 | |
| 40 | // Mode will return the mode of a given file |
| 41 | func (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 |
| 51 | func (f File) ModTime() time.Time { |