Created
April 21, 2014 18:33
-
-
Save toddw-as/11151875 to your computer and use it in GitHub Desktop.
Komodo Places change file permission (chmod)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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