chmod static method

bool chmod(
  1. String perms,
  2. String filePath, [
  3. String? workingDir
])

Runs a chmod command against the filePath in the workingDir using the provided perms

Implementation

static bool chmod(String perms, String filePath, [String? workingDir]) {
  return Process.runSync('chmod', [perms, filePath],
              workingDirectory: workingDir)
          .exitCode ==
      0;
}