title: Couldn't create directory error in wordpress
body: <p>I installed a XAMPP application and used localhost to install the latest version of WordPress. Every time I try to upload the or update plugin or theme, it gives me an error </p>
  
  <blockquote>
    <p>Couldn't create the directory.</p>
  </blockquote>
  
  <p>I'm using Mac OS X, I've changed the permissions as well as I have added the <code>define('FS_METHOD','direct');</code> command in the wp-config file. However, it is still not working for me. </p>
  
  <p>What can I do in this case? </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I have already tried following the steps in this article: </p>
  
  <p><a href="https://stackoverflow.com/questions/9046977/xampp-permissions-on-mac-os-x">XAMPP permissions on Mac OS X?</a></p>