1
0
mirror of https://github.com/distribution/distribution synced 2025-02-23 06:49:36 +01:00

Merge pull request #863 from BrianBland/ng-storagedriver

Fixes filesystem storage driver List semantics for nonexistent directory
This commit is contained in:
Stephen Day 2014-12-18 10:47:31 -08:00
commit 3b8847f489

@ -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
}