Translate an argument to a permissions bit.
| 100 | |
| 101 | // Translate an argument to a permissions bit. |
| 102 | bool cmFileCopier::CheckPermissions(std::string const& arg, |
| 103 | mode_t& permissions) |
| 104 | { |
| 105 | if (!cmFSPermissions::stringToModeT(arg, permissions)) { |
| 106 | std::ostringstream e; |
| 107 | e << this->Name << " given invalid permission \"" << arg << "\"."; |
| 108 | this->Status.SetError(e.str()); |
| 109 | return false; |
| 110 | } |
| 111 | return true; |
| 112 | } |
| 113 | |
| 114 | std::string const& cmFileCopier::ToName(std::string const& fromName) |
| 115 | { |
no test coverage detected