I need to access all files in a given directory and all subdirectories. So I write a sub with Dir that is calling itself with recursion. The problem is that inside calls to Dir screw outside calls Dir, so that when I go back in recusion my Dir is reset.
How should I approach this task?
How should I approach this task?