You are basically interested in those directories in your tree which have no subdirectories; so the following algorithm should work:
In reply to Re^3: How to Get the Last Subdirectories
by rovf
in thread How to Get the Last Subdirectories
by bichonfrise74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |