Skip to content

Commit

Permalink
List azure blob versions using file path not location path (#124)
Browse files Browse the repository at this point in the history
* List azure blob versions using file path not location path

* updated changelog
  • Loading branch information
dhondgepooja authored Jul 8, 2022
1 parent 8b50cb1 commit 4f7836e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]

### Fixed
- Fixed the azure deleteAllVersions to fetch versions using file path instead of location path

## [6.5.0]

### Added
Expand Down
2 changes: 1 addition & 1 deletion backend/azure/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (a *DefaultClient) DeleteAllVersions(file vfs.File) error {
containerURL := azblob.NewContainerURL(*URL, a.pipeline)
blobURL := containerURL.NewBlockBlobURL(utils.RemoveLeadingSlash(file.Path()))

versions, err := a.getBlobVersions(containerURL, utils.RemoveLeadingSlash(file.Location().Path()))
versions, err := a.getBlobVersions(containerURL, utils.RemoveLeadingSlash(file.Path()))
if err != nil {
return err
}
Expand Down

0 comments on commit 4f7836e

Please sign in to comment.