feat: skip creating an existing folder

This commit is contained in:
Xhofe
2022-03-11 18:12:13 +08:00
parent 8a62d55efe
commit 4b540a2297
2 changed files with 5 additions and 5 deletions

View File

@ -158,10 +158,6 @@ func (driver MediaTrack) Preview(path string, account *model.Account) (interface
}
func (driver MediaTrack) MakeDir(path string, account *model.Account) error {
_, err := driver.File(path, account)
if err != base.ErrPathNotFound {
return nil
}
parentFile, err := driver.File(utils.Dir(path), account)
if err != nil {
return err