GCS Storagedriver: fix test failure caused by #1187

Signed-off-by: Arthur Baars <arthur@semmle.com>
This commit is contained in:
Arthur Baars 2016-01-06 18:17:17 +00:00
parent 74d719d83f
commit bb1e9e0a82

View File

@ -461,6 +461,11 @@ func (d *driver) List(context ctx.Context, path string) ([]string, error) {
break
}
}
if path != "/" && len(list) == 0 {
// Treat empty response as missing directory, since we don't actually
// have directories in Google Cloud Storage.
return nil, storagedriver.PathNotFoundError{Path: path}
}
return list, nil
}