mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-11 23:59:43 +08:00
refactor: update logging levels and remove unused code
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user