title: After using File::makeDirectory in Laravel, I get "mkdir(): No such file or directory" error
body: <p>I'm trying to create a folder that will contain all images of an image album. Unfortunately, when I try to use File::makeDirectory I get the "mkdir(): No such file or directory" error. Now, I am either using it incorrectly or there's something wrong with my path. My goal is to create a folder called $albumName in my albums folder. Also considering I'm using php artisan storage:link, should my path be:</p>
  
  <pre><code>public/albums/'.$albumName
  </code></pre>
  
  <p>or</p>
  
  <pre><code>public/storage/albums/'.$albumName
  </code></pre>
  
  <p>My code so far.</p>
  
  <pre><code>public function uploadAlbum(Request $request){
  
          $albumName = $request['albumName'];
          $albumPath = File::makeDirectory('public/albums/'.$albumName);
  
  
          return redirect()-&gt;route('home');
      }
  </code></pre>
  
  <p>the error</p>
  
  <p>C:\MAMP\htdocs\LaravelProject\vendor\laravel\framework\src\Illuminate\Filesystem\Filesystem.php</p>
  
  <pre><code>        return $directories;
      }
  
      /**
       * Create a directory.
       *
       * @param  string  $path
       * @param  int     $mode
       * @param  bool    $recursive
       * @param  bool    $force
       * @return bool
       */
      public function makeDirectory($path, $mode = 0755, $recursive = false, $force = false)
      {
          if ($force) {
              return @mkdir($path, $mode, $recursive);
          }
  
          return mkdir($path, $mode, $recursive);
      }
  
      /**
       * Move a directory.
       *
       * @param  string  $from
       * @param  string  $to
       * @param  bool  $overwrite
       * @return bool
       */
      public function moveDirectory($from, $to, $overwrite = false)
      {
          if ($overwrite &amp;&amp; $this-&gt;isDirectory($to)) {
              if (! $this-&gt;deleteDirectory($to)) {
                  return false;
              }
          }
  
          return @rename($from, $to) === true;
      }
  Arguments
  "mkdir(): No such file or directory"
  </code></pre>