Skip to content

Commit

Permalink
change ref exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed Aug 14, 2023
1 parent 17dae08 commit aaff333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dstorage/dstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (d *DStorageService) Duplicate(ctx context.Context, remotePath string, r io
}

func (d *DStorageService) IsFileExist(ctx context.Context, remotePath string) (bool, error) {
_, err := d.allocation.GetFileMeta(remotePath)
_, err := d.GetFileMetaData(ctx, remotePath)
if err != nil {
if zerror.IsFileNotExistError(err) {
return false, nil
Expand Down

0 comments on commit aaff333

Please sign in to comment.