refactor: update logging levels and remove unused code

This commit is contained in:
krau
2024-11-09 11:00:49 +08:00
parent 71e5007228
commit 454d69c9d4
7 changed files with 5 additions and 63 deletions

View File

@@ -32,7 +32,7 @@ func (w *Webdav) Init() {
}
func (w *Webdav) Save(ctx context.Context, filePath, storagePath string) error {
storagePath = filepath.Join(basePath, storagePath)
storagePath = basePath + "/" + storagePath
if err := Client.MkdirAll(filepath.Dir(storagePath), os.ModePerm); err != nil {
logger.L.Errorf("Failed to create directory %s: %v", filepath.Dir(storagePath), err)
return errors.New("webdav: failed to create directory")