I tested the same logic in a way you suggested and found it a little bit slower for a big directories. But writing is much easier of course
In reply to Re^2: Optimizing performance for script to traverse on filesystem
by gdanenb
in thread Optimizing performance for script to traverse on filesystem
by gdanenb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |