ALL,
According to this, ntfw is obsolete in POSIX.1-2008.
Is there a replacement of this function? Or I should use something else across the board?
TIA!
ALL,
According to this, ntfw is obsolete in POSIX.1-2008.
Is there a replacement of this function? Or I should use something else across the board?
TIA!
Copyright © 2021 Jogjafile Inc.
From the link you cited:
My interpretation is that ftw was obsoleted in favor of nftw. So use that.
Personally, I would just implement my own. Every intro level CS textbook I've ever read covers filesystem traversal. I would use a fifo queue of dir handles and iterative breadth-first loop to avoid unnecessary function call overhead, both in the traversal and in the per-file hook (implemented as a function pointer in ftw).