title: os.Mkdir and os.MkdirAll permissions
body: <p>I'm trying to create a log file at the start of my program.</p>
  <p>I need to check if a <code>/log</code> directory exists if it doesn't create the directory then move on to creating the log file.</p>
  <p>Well I tried to use <code>os.Mkdir</code> (as well as <code>os.MkdirAll</code>), but no matter what value I put into the second parameter I get a locked out folder with no permissions. What value should this be in order to get a read / write for user folder? I thought it would be <code>0x700</code> but it doesn't seem to work.</p>
  <p>Thanks!</p>