diff --git a/storagedriver/filesystem/driver.go b/storagedriver/filesystem/driver.go index 3c3c950f..0fb5e6fc 100644 --- a/storagedriver/filesystem/driver.go +++ b/storagedriver/filesystem/driver.go @@ -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 }