fix file perms

This commit is contained in:
Christoph Polcin 2014-10-24 09:29:03 +02:00
parent 544a4735b6
commit c23fd5a8be

View File

@ -23,10 +23,11 @@ func (f File) Size() int64 {
} }
func (f File) Mode() os.FileMode { func (f File) Mode() os.FileMode {
// TODO check webdav perms
if f.isdir { if f.isdir {
return 0777 | os.ModeDir return 0775 | os.ModeDir
} else { } else {
return 0622 return 0664
} }
} }