Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.1.0] Optimize out a stat call. (bazelbuild#21388)
Calling isDirectory on a Path requires an extra system call. In most Unix filesystems, readdir is able to return the type directly (see the implementation in NativePosixFiles). PiperOrigin-RevId: 607678196 Change-Id: I5d09f11d6aa4702a6f7a0310cca26616cfbac6d1
- Loading branch information