Huh…
Source code:
var os = Components.classes["@activestate.com/koOs;1"].getService(Components.interfaces.koIOs);
var kodoc = komodo.koDoc;
var path = kodoc.file.dirName;
var dirlist = os.listdir(path);
Error:
var dirlist = os.listdir(path);
NS_ERROR_XPC_NOT_ENOUGH_ARGS: Not enough arguments [koIOs.listdir]
exception[lineNumber] = 693
exception[name] = NS_ERROR_XPC_NOT_ENOUGH_ARGS
exception[message] = Not enough arguments [koIOs.listdir]
exception[QueryInterface] = function QueryInterface() {
[native code]
}
exception[result] = 2153185281
exception[filename] = chrome://komodo/content/project/peMacro.js
exception[columnNumber] = 0
exception[location] = JS frame :: chrome://komodo/content/project/peMacro.js :: anonymous :: line 693
exception[inner] = null
exception[data] = null
exception[initialize] = function initialize() {
[native code]
}
Why?
InkoOs
object I find this function and it’s has only 1 argument - path
.
https://github.com/Komodo/KomodoEdit/blob/trunk/src/components/koOs.py#L384-L390