Is the nftw(file tree walk) function available on

2019-08-31 06:26发布

问题:

I'm writing code to walk a directory and its subdirs on linux using nftw. Is the nftwfunction available on Windows?

回答1:

Not as part of the standard Windows APIs, no.

Also note that the manual page claims:

Conforming To POSIX.1-2001, SVr4, SUSv1. POSIX.1-2008 marks ftw() as obsolete.

So it's perhaps not the best starting point even when targetting POSIX.

Still, this library implements it for Windows.



标签: c linux windows