mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
6cc2571add
commit
bb175469f0
|
@ -222,10 +222,6 @@ func (w *DbfsClient) ReadDir(ctx context.Context, name string) ([]fs.DirEntry, e
|
||||||
return nil, err
|
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))
|
info := make([]fs.DirEntry, len(res.Files))
|
||||||
for i, v := range res.Files {
|
for i, v := range res.Files {
|
||||||
info[i] = dbfsDirEntry{dbfsFileInfo: dbfsFileInfo{fi: v}}
|
info[i] = dbfsDirEntry{dbfsFileInfo: dbfsFileInfo{fi: v}}
|
||||||
|
|
Loading…
Reference in New Issue