You don't need recursion, because the "find" function is traversing the directory structure for you.
The errors you see are due to renaming of a directory before it is finished being used. Try "finddepth" instead of "find". The "finddepth" routine will process a directory's contents before the directory itself.
In reply to Re^3: elseif syntax error
by gmargo
in thread elseif syntax error
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |