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

View file

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