title: How to perform chmod recursively?
body: <p>How can I change permissions to 0777, at runtime, of a folder and all its subfolders, recursively?</p>
  <p>The code is in c++, mac. I'm including &lt;sys/stat.h&gt; which has <code>chmod</code>, however there's no documentation on how to do it recursively.</p>