I'm writing code to walk a directory and its subdirs on linux using nftw
. Is the nftw
function 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.