#include <ewmscp.h>
Definition at line 71 of file ewmscp.h.
◆ preservables()
preservables::preservables |
( |
| ) |
|
|
inlinenoexcept |
◆ set()
void preservables::set |
( |
const std::string & |
opt | ) |
|
Definition at line 185 of file ewmscp.cpp.
186 std::remove_reference<decltype(opt)>::type::size_type
start = 0;
187 auto stop = opt.find(
',',
start);
189 auto keyword = opt.substr(
start, stop -
start);
190 if (keyword ==
"mode") {
192 }
else if (keyword ==
"ownership") {
194 }
else if (keyword ==
"timestamps") {
196 }
else if (keyword ==
"attr" || keyword ==
"xattr") {
198 }
else if (keyword ==
"acls") {
200 }
else if (keyword ==
"all") {
207 throw std::invalid_argument(
"bad --preserve argument " + keyword);
209 if (stop == std::remove_reference<decltype(opt)>::type::npos) {
213 stop = opt.find(
',',
start);
References acls, attrs, mode, ownership, throttle::start, and timestamps.
◆ acls
◆ attrs
◆ mode
◆ ownership
bool preservables::ownership |
◆ timestamps
bool preservables::timestamps |
The documentation for this class was generated from the following files: