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 callbackfts
is easier to use than (n)ftw
because it operates under the control of your code, not the other way aroundnftw
, note the comment about limitationsfts
takes a bit more code but has more featuresReuben Firmin
03/26/2023, 12:17 PM