[英]Is the nftw(file tree walk) function available on Windows
I'm writing code to walk a directory and its subdirs on linux using nftw
. 我正在编写代码以使用
nftw
在linux上遍历目录及其子目录。 Is the nftw
function available on Windows? Windows是否可以使用
nftw
功能?
Not as part of the standard Windows APIs, no. 不作为标准Windows API的一部分,不可以。
Also note that the manual page claims: 另请注意, 手册页声称:
Conforming To POSIX.1-2001, SVr4, SUSv1.
符合POSIX.1-2001,SVr4,SUSv1。 POSIX.1-2008 marks ftw() as obsolete.
POSIX.1-2008将ftw()标记为过时。
So it's perhaps not the best starting point even when targetting POSIX. 因此,即使定位POSIX,也可能不是最佳起点。
Still, this library implements it for Windows. 尽管如此, 该库还是为Windows实现了它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.