-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix storage OS bucket not returning ErrNotExist correctly (#3188)
This PR fixes a bug of the storage bucket where it does not return an `fs.ErrNotExist` error when it should. It happens when both conditions met: * The bucket is created with an absolute path, i.e. `provider.NewReadWriteBucket("/absPath")` * `bucket.Get(ctx, "existing.file/foo")` is called, where `existing.file` exists as a regular file. Fixes #3185
- Loading branch information
1 parent
3ef45f8
commit c9b96ae
Showing
3 changed files
with
73 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters