I am working on a project to make a database of the files I have on current directory. And one of the details I want about my files is the file permissions that are set with
perms permissions() const { return m_perms; }
defined in boost/filesystem/v3/operations.hpp
Add an easy sample code
#include #include namespace fs=boost::filesystem; int main(int argc,char * argv[]){ fs::path p(argv[1]); fs::file_status s = status(p); printf("%o\n",s.permissions()); }