mirror of
https://github.com/distribution/distribution.git
synced 2026-01-25 14:44:37 +00:00
Merge pull request #863 from BrianBland/ng-storagedriver
Fixes filesystem storage driver List semantics for nonexistent directory
This commit is contained in:
@@ -201,6 +201,9 @@ func (d *Driver) List(subPath string) ([]string, error) {
|
||||
|
||||
dir, err := os.Open(fullPath)
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return nil, storagedriver.PathNotFoundError{Path: subPath}
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user