The standard library provides a way to change file permissions, so I wonder if I am missing something.
Some functional functionality of the OS can be found in the module std::os: for example, std::os::unix::fs::MetadataExtit allows you to read uid/ guidor std::os::unix::fs::PermissionsExtprocess file modes. However, AFAIK does not support stdchanging ownership / group.
std::os
std::os::unix::fs::MetadataExt
uid
guid
std::os::unix::fs::PermissionsExt
std
As PeterHall noted , libcthere is a function chmod(s chown) in the box .
libc
chmod
chown
coreutils, GNU CLI, .
Source: https://habr.com/ru/post/1670477/More articles:Sending a signal to a process with Java 9 - javaMySQL before starting for INSERT ON DUPLICATE KEY UPDATE - does the manual seem to be wrong? - mysqlHow to configure angular2 CLI in a standalone environment - angularjsHow to prevent RecyclerView element from blinking after notifyItemChanged (pos)? - androidВыполняется ли до запуска INSERT триггер для каждой строки в запросе "вставить в дубликат ключевого обновления" - mysqlbit of 64 integers with fst - rcan i make a list of types in haskell? - dictionaryC rand () is not random even when sowing - csrand (время (NULL)), генерирующие аналогичные результаты - c++How to disable the Stackdriver Logging Agent in a cluster? - google-container-engineAll Articles