Fix: do hard-copy when editing file with soft links

This commit is contained in:
HFO4
2020-01-16 10:11:16 +08:00
parent 098aa0a0c0
commit 0e62665d7f
6 changed files with 88 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import (
"github.com/HFO4/cloudreve/pkg/auth"
"github.com/HFO4/cloudreve/pkg/conf"
"github.com/HFO4/cloudreve/pkg/filesystem/local"
"github.com/HFO4/cloudreve/pkg/filesystem/oss"
"github.com/HFO4/cloudreve/pkg/filesystem/qiniu"
"github.com/HFO4/cloudreve/pkg/filesystem/remote"
"github.com/HFO4/cloudreve/pkg/filesystem/response"
@@ -167,6 +168,11 @@ func (fs *FileSystem) dispatchHandler() error {
Policy: currentPolicy,
}
return nil
case "oss":
fs.Handler = oss.Handler{
Policy: currentPolicy,
}
return nil
default:
return ErrUnknownPolicyType
}