getdents should return type=DT_DIR for SpecialDirectories.
It was returning DT_UNKNOWN, and this was breaking numpy. PiperOrigin-RevId: 209459351 Change-Id: Ic6f548e23aa9c551b2032b92636cb5f0df9ccbd4
This commit is contained in:
parent
0fc7b30695
commit
1501400d9c
|
@ -150,7 +150,7 @@ func toType(nodeType fs.InodeType) uint8 {
|
||||||
return syscall.DT_REG
|
return syscall.DT_REG
|
||||||
case fs.Symlink:
|
case fs.Symlink:
|
||||||
return syscall.DT_LNK
|
return syscall.DT_LNK
|
||||||
case fs.Directory:
|
case fs.Directory, fs.SpecialDirectory:
|
||||||
return syscall.DT_DIR
|
return syscall.DT_DIR
|
||||||
case fs.Pipe:
|
case fs.Pipe:
|
||||||
return syscall.DT_FIFO
|
return syscall.DT_FIFO
|
||||||
|
|
Loading…
Reference in New Issue