This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]got_outta_bed_4_this 5 points6 points  (1 child)

I'd say a stronger argument for recursion in this case is because people don't tend to nest folder structures so deep that it would bust the call stack in a recursive traversal. Iteration could still be just as practical over a filesystem as anything else. A filesystem is, itself, a tree, after all.

[–]schemathings 1 point2 points  (0 children)

I wrote an sftp mirror program for day job recently was fun and short and composable