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

View File

@ -222,10 +222,6 @@ func (w *DbfsClient) ReadDir(ctx context.Context, name string) ([]fs.DirEntry, e
return nil, err
}
if len(res.Files) == 1 && !res.Files[0].IsDir && res.Files[0].Path == absPath {
return nil, NotADirectory{absPath}
}
info := make([]fs.DirEntry, len(res.Files))
for i, v := range res.Files {
info[i] = dbfsDirEntry{dbfsFileInfo: dbfsFileInfo{fi: v}}