Moves the current Dir() settings onto and from the stack.
DirPop DirPopAll DirPush
When moving from a folder into a sub-folder using the Dir command, rather than having to recreate the original settings (and then navigate to the current folder again) when returning to the parent folder, it is possible to use DirPush to store them on the stack, and DirPop to retrieve them when required. Once you have finished, you can use DirPopAll to remove any remaining settings and clear the stack.
See the sample program "RecurseDir2.g32" in GFABASIC32\gb32\Samples\Files
A stack is a LIFO system, where the last element stored is retrieved first (last-in-first-out). So, if you have saved the path 20 times with DirPush you can go back to the eleventh instance by invoking DirPop 10 times.
Dir()
{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}