projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
12483: Enable rename via webdav.
[arvados.git]
/
services
/
keep-web
/
webdav.go
diff --git
a/services/keep-web/webdav.go
b/services/keep-web/webdav.go
index 87d9c47f1430e9a8c028ff35c0eb2b16e6772d82..4a9476dc990bf5ff50519a61e00872c2e62a5b66 100644
(file)
--- a/
services/keep-web/webdav.go
+++ b/
services/keep-web/webdav.go
@@
-53,7
+53,10
@@
func (fs *webdavFS) RemoveAll(ctx context.Context, name string) error {
}
func (fs *webdavFS) Rename(ctx context.Context, oldName, newName string) error {
}
func (fs *webdavFS) Rename(ctx context.Context, oldName, newName string) error {
- return errReadOnly
+ if fs.update == nil {
+ return errReadOnly
+ }
+ return fs.Rename(oldName, newName)
}
func (fs *webdavFS) Stat(ctx context.Context, name string) (os.FileInfo, error) {
}
func (fs *webdavFS) Stat(ctx context.Context, name string) (os.FileInfo, error) {