5

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.

Ben J
  • 1,367
  • 2
  • 15
  • 33
  • check [How to get file permissions with c++ boost library?](http://stackoverflow.com/q/9776050) – CharlesB Sep 11 '12 at 16:57
  • Thanks Charles, but its not the permissions that I'm after but the actual owner id and/or group id of the file. Cheers. – Ben J Sep 12 '12 at 07:45

1 Answers1

3

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.

Sergei Nikulov
  • 5,029
  • 23
  • 36