std::filesystem::file_status::permissions

std::filesystem::perms permissions() const noexcept;
(1) (C++17 起)
void permissions( std::filesystem::perms perm ) noexcept;
(2) (C++17 起)

访问文件权限信息。

1) 返回文件权限信息。
2) 设置文件权限为 perm

参数

perm - 要设置的文件权限

返回值

1) 文件权限信息。
2) (无)

示例

版本历史

  • (当前 | 先前 2017年9月29日 (五) 09:22Fruderica讨论 | 贡献 . . (580字节) (-24). . (merge noexcept) (撤销)
  • 当前 | 先前) 2017年4月30日 (日) 09:53Fruderica讨论 | 贡献. . (604字节) (+604). . (以“{{cpp/filesystem/file_status/title|permissions}} {{cpp/filesystem/file_status/navbar}} {{dcl begin}} {{dcl | since=c++17 | num=1 | 1= std::filesystem::perms permissi...”为内容创建页面)