开发者

Cross platform recursive file list using C++?

开发者 https://www.devze.com 2023-01-06 02:10 出处:网络
What is the most efficient way to recursively list files in a specific directory and its subdirectories? Should I use the standard librar开发者_开发知识库y, or use some third party?

What is the most efficient way to recursively list files in a specific directory and its subdirectories? Should I use the standard librar开发者_开发知识库y, or use some third party?

I want this because I use v8 as a JavaScript engine, and I want to execute all scripts in some directory (and its subdirectories). If there's any built-in way to do that in v8, great :)

It should support Windows, Linux and OS X.

Thanks.


For a generic cross-platform C++ solution, check out boost::filesystem

0

精彩评论

暂无评论...
验证码 换一张
取 消