This commit is contained in:
Shreyas Goenka 2023-06-06 00:26:41 +02:00
parent bb175469f0
commit ae09abf1f5
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 0 additions and 5 deletions

View File

@ -223,11 +223,6 @@ func (w *WorkspaceFilesClient) ReadDir(ctx context.Context, name string) ([]fs.D
Path: absPath,
})
// TODO: add integration test for this
if len(objects) == 1 && objects[0].Path == absPath {
return nil, NotADirectory{absPath}
}
if err != nil {
// If we got an API error we deal with it below.
var aerr *apierr.APIError