🐛 fix upload delete cache

This commit is contained in:
微凉
2022-01-02 18:17:04 +08:00
parent d255ff4fd0
commit e7ba289d06
3 changed files with 3 additions and 3 deletions

View File

@ -251,7 +251,7 @@ func (driver FTP) Upload(file *model.FileStream, account *model.Account) error {
defer func() { _ = conn.Quit() }()
err = conn.Stor(realPath, file)
if err == nil {
_ = base.DeleteCache(utils.Dir(file.ParentPath), account)
_ = base.DeleteCache(file.ParentPath, account)
}
return err
}