Fixes documentation to show that StorageDriver.List is non-recursive

This commit is contained in:
Brian Bland 2014-11-04 09:52:24 -08:00
parent 43716a2850
commit 7daa850d44
5 changed files with 12 additions and 12 deletions

View file

@ -110,8 +110,8 @@ func (d *InMemoryDriver) ResumeWritePosition(path string) (uint64, error) {
return uint64(len(contents)), nil
}
func (d *InMemoryDriver) List(prefix string) ([]string, error) {
subPathMatcher, err := regexp.Compile(fmt.Sprintf("^%s/[^/]+", prefix))
func (d *InMemoryDriver) List(path string) ([]string, error) {
subPathMatcher, err := regexp.Compile(fmt.Sprintf("^%s/[^/]+", path))
if err != nil {
return nil, err
}