MCPcopy Create free account
hub / github.com/Kitware/CMake / CheckPermissions

Method CheckPermissions

Source/cmFileCopier.cxx:102–112  ·  view source on GitHub ↗

Translate an argument to a permissions bit.

Source from the content-addressed store, hash-verified

100
101// Translate an argument to a permissions bit.
102bool 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
114std::string const& cmFileCopier::ToName(std::string const& fromName)
115{

Callers 2

CheckValueMethod · 0.95

Calls 2

strMethod · 0.80
SetErrorMethod · 0.45

Tested by

no test coverage detected