fix: copy folder between two storage (fix #1670)

This commit is contained in:
Noah Hsu
2022-09-15 17:58:32 +08:00
parent 86a625cb40
commit d9f0603271
7 changed files with 85 additions and 78 deletions

View File

@ -338,12 +338,10 @@ func Put(ctx context.Context, storage driver.Driver, dstDirPath string, file mod
}
err = storage.Put(ctx, parentDir, file, up)
log.Debugf("put file [%s] done", file.GetName())
if err == nil {
// set as complete
up(100)
// clear cache
//key := stdpath.Join(storage.GetStorage().MountPath, dstDirPath)
//listCache.Del(key)
}
//if err == nil {
// //clear cache
// key := stdpath.Join(storage.GetStorage().MountPath, dstDirPath)
// listCache.Del(key)
//}
return errors.WithStack(err)
}