org.icongarden.workingDirectory extension. For now, it has two methods:getreturns a string containing a native path to the current working directory.enumeratereturns an array containing the names of the directory entries contained by the current working directory. In the near feature, this array will contain objects instead of strings, and each object will describe various other aspects of the corresponding directory entry, such as its type and its modification date.
PWD if it's present, which is normally the case because Counterpart sets it just before calling user scripts. However, if it's not set, these methods will figure out what it ought to be and set it before returning so they will run faster in the future. Once I finish enumerate, I plan to add two more methods.descendchanges the working directory to the child of the current working directory specified in its single parameter.ascendchanges the working directory to the parent of the current working directory.
These methods are implemented in C++. I may eventually build a script-based front end to them which knows how to explore file systems and/or represent paths (without separator characters, of course).
No comments:
Post a Comment