Reuben Firmin
03/24/2023, 6:20 PMstat or nftw? I'm attempting to work from the docs at https://linux.die.net/man/3/nftw, but I'm a little lost.
// ...
val dir = "/tmp"
nftw(dir, ::printEntry, 50, FTW_PHYS)
}
fun printEntry(path: String, ??? ) {
}ephemient
03/24/2023, 6:31 PMstaticCFunction for the callbackephemient
03/24/2023, 6:38 PMfts is easier to use than (n)ftw because it operates under the control of your code, not the other way aroundephemient
03/26/2023, 1:59 AMnftw, note the comment about limitationsephemient
03/26/2023, 2:00 AMfts takes a bit more code but has more featuresReuben Firmin
03/26/2023, 12:17 PM