Is there a near equivalent to sys/stat.h in boost::filesystem?
-
01-07-2021 - |
質問
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.
解決
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.
所属していません StackOverflow