Cross platform recursive file list using C++?

筅森魡賤 提交于 2019-12-12 18:16:58

问题


What is the most efficient way to recursively list files in a specific directory and its subdirectories? Should I use the standard library, 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.


回答1:


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



来源:https://stackoverflow.com/questions/3170440/cross-platform-recursive-file-list-using-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!