simsong / bulk_extractor

This is the development tree. Production downloads are at:
https://github.com/simsong/bulk_extractor/releases
Other
1.11k stars 187 forks source link

Use std::filesystem instead of platform-specific directory traversal code #160

Closed jonstewart closed 3 years ago

jonstewart commented 3 years ago

C++17 introduces the std::filesystem library, which allows for platform agnostic filesystem directory walking. It is disappointingly limited in its approach to nonportable metadata, but if all you need to do is walk a directory recursively, get the paths, and open the files, it works great and can rid your code of #ifdefs.

jonstewart commented 3 years ago

Now that I'm on the right branch, looks like you're well under way.

simsong commented 3 years ago

Yes. I am trying to put std::filesystem stuff everywhere.

simsong commented 3 years ago

I think that we're using it everywhere now.