WebDAV: try to preserve the lock fs as much as possible

This commit is contained in:
Nicola Murino
2021-03-27 19:10:27 +01:00
parent 5f49af1780
commit 9ad750da54
17 changed files with 456 additions and 209 deletions

View File

@@ -35,10 +35,8 @@ func NewCryptFs(connectionID, rootDir, mountPath string, config CryptFsConfig) (
if err := config.Validate(); err != nil {
return nil, err
}
if config.Passphrase.IsEncrypted() {
if err := config.Passphrase.Decrypt(); err != nil {
return nil, err
}
if err := config.Passphrase.TryDecrypt(); err != nil {
return nil, err
}
fs := &CryptFs{
OsFs: &OsFs{