title: C faster way to check if a directory exists
body: <p>I'm using opendir function to check if a directory exists. The problem is that I'm using it on a massive loop and it's inflating the ram used by my app.</p>
  
  <p>What is the best (fastest) way to check if a directory exists in C? What is the best (fastest) way to create it if doesn't exists?</p>