From c23fd5a8be145b35bb7c83eb4dde014c43039b35 Mon Sep 17 00:00:00 2001 From: Christoph Polcin Date: Fri, 24 Oct 2014 09:29:03 +0200 Subject: [PATCH] fix file perms --- file.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/file.go b/file.go index 066a241..250d65c 100644 --- a/file.go +++ b/file.go @@ -23,10 +23,11 @@ func (f File) Size() int64 { } func (f File) Mode() os.FileMode { + // TODO check webdav perms if f.isdir { - return 0777 | os.ModeDir + return 0775 | os.ModeDir } else { - return 0622 + return 0664 } }