Or, to avoid a second call to `stat`, you could add something like
```
isfileorlink(p) = lstat(p).mode & 0xd000 == 0x8000
```
to `stat.jl`