Search code examples
c++boostboost-filesystem

Can I get file attributes (hidden/archive...) with boost filesystem?


I am using boost::filesystem to copy a directory recursively. I would like to exclude hidden files. Is it possible to get the FAT32 file attributes like "hidden" or "archive" using boost filesystem?

Thanks,

Philipp


Solution

  • Boost::filesystem currently restricts itself to POSIX file attributes. However, the file_status class documentation indicates that the implementation could be extended at any time. I would guess this is just waiting on someone motivated to do the work.