Search code examples
booststatboost-filesystem

Is there a near equivalent to sys/stat.h in boost::filesystem?


In particular, I would like to be able to access the user_id and group_id of a file. The closest equivalent I can find to stat struct is the file_status class but this doesn't appear to have the appropriate fields..

Any idea? Cheers, Ben.


Solution

  • According to documentation Boost::filesystem "provides facilities to manipulate files and directories, and the paths that identify them".

    While getting information about user_id/group_id can be useful, but it can be non-portable and thus is omitted.