Skip to content

Instantly share code, notes, and snippets.

@toddw-as
Created April 21, 2014 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toddw-as/11151875 to your computer and use it in GitHub Desktop.
Save toddw-as/11151875 to your computer and use it in GitHub Desktop.
Komodo Places change file permission (chmod)
var entry = ko.places.manager.getSelectedItem();
var koFile = entry.file;
// Unix style permissions (octal)
var permissions = koFile.permissions.toString(8);
var result = ko.dialogs.prompt("File: " + koFile.baseName, "Permissions:", permissions);
if (result !== null) {
koFile.chmod(parseInt(result, 8));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment