clone: use dir-iterator to avoid explicit dir traversal