Makedirs error unexpected keyword argument 'exists_ok'
<p>I am trying to use python to create a new folder and if that folder already exists not giving me an exception. Hence I am running the code:</p>

<pre><code>import os 

os.makedirs('test', exist_ok=True)  
</code></pre>

<p>I am then getting the error </p>

<pre><code>Traceback (most recent call last):
  File "C:\...\testing.py", line 3, in &lt;module&gt;
    os.makedirs('test', exist_ok=True)  
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'
</code></pre>

<p>I don't really understand what this means or why its not working? </p>

<p>I cannot really find that much documentation on exist_ok other than it is new to python 3.2 below </p>

<p><a href="https://docs.python.org/3/library/os.html?highlight=makedirs#os.makedirs" rel="nofollow">https://docs.python.org/3/library/os.html?highlight=makedirs#os.makedirs</a></p>

<p>Thanks</p>