@@ -3,7 +3,6 @@ package batch_task
33import (
44 "context"
55 "path"
6- stdpath "path"
76
87 "github.com/OpenListTeam/OpenList/v4/internal/driver"
98 "github.com/OpenListTeam/OpenList/v4/internal/model"
@@ -60,7 +59,7 @@ func verify(ctx context.Context, srcStorage, dstStorage driver.Driver, srcPath,
6059 return errors .WithMessagef (err , "failed get src [%s] file" , path .Join (srcStorage .GetStorage ().MountPath , srcPath ))
6160 }
6261
63- dstObjPath := stdpath .Join (dstPath , srcObj .GetName ())
62+ dstObjPath := path .Join (dstPath , srcObj .GetName ())
6463 dstObj , err := op .Get (ctx , dstStorage , dstObjPath )
6564 if err != nil {
6665 return errors .WithMessagef (err , "failed get dst [%s] file" , path .Join (dstStorage .GetStorage ().MountPath , dstObjPath ))
@@ -77,7 +76,7 @@ func verify(ctx context.Context, srcStorage, dstStorage driver.Driver, srcPath,
7776 }
7877
7978 for _ , obj := range srcObjs {
80- srcSubPath := stdpath .Join (srcPath , obj .GetName ())
79+ srcSubPath := path .Join (srcPath , obj .GetName ())
8180 err := verify (ctx , srcStorage , dstStorage , srcSubPath , dstObjPath )
8281 if err != nil {
8382 return err
0 commit comments