i do not figure out how to properly determine if a file is readable by current process using c++ filesystem library. i would like to use c++ standard filesystem library for portability. i thought that it could be possible by bitmasking permissions obtained from file_status as an example described in https://en.cppreference.com/w/cpp/filesystem/perms but i am afraid that it is not for the current running process.
could anybody tell me the proper way? thanks in advance.