Merge pull request #863 from BrianBland/ng-storagedriver
Fixes filesystem storage driver List semantics for nonexistent directory
This commit is contained in:
commit
3b8847f489
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue