Summing lists in directory structure
|
09-15-2017, 05:49 PM
Post: #4
|
|||
|
|||
RE: Summing lists in directory structure
Here's an additional example of one way to approach this.
As written, the following RPL program needs to be saved in the root of your HOME directory (or in a library) so that it can be accessed appropriately. It could be saved somewhere else if you make a minor change to it, though I'll leave that as an exercise for the reader. Code: DODIRS DODIRS takes another RPL program in stack level 1 as an argument, then executes it in the current directory and each "child" subdirectory to the current one. As an example, let's say that you wanted to obtain a list of all of the directories currently defined in your directory tree. You can do this simply by setting HOME as your current directory, then passing a simple program to DODIRS which updates a result list as the directory tree is traversed: Code: TestDODIRS Hopefully the combination of Pier's and these examples will spark some ideas for you. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)