getPermissionTool method
Get the permission tool used to change files permissions.
Implementation
String getPermissionTool() {
switch (this) {
case OperatingSystem.windows:
return 'icacls';
case OperatingSystem.macOs:
case OperatingSystem.linux:
// Both mac and linux support the find command, new window system does
// but through powershell since we don't limit it in specific version.
return 'find';
default:
throw const UnsupportedOsException();
}
}