title: How to store a file from SFTP in Laravel 5.5. Using Flysystem Lib
body: <p>I am using Flysystem to get files from a SFTP server, getting files and download works fine, <strong>I want to store it in my storage folder.</strong> my code is below:</p>
  
  <pre><code>    $adapter = new SftpAdapter([
          'host' =&gt; 'demo.wftpserver.com:2222',
          'username' =&gt; 'demo-user',
          'password' =&gt; 'demo-user',
      ]);
  
      $filesystem = new Filesystem($adapter);
  
      $abc = Storage::disk('sftp')-&gt;get('upload/fo.png', $filesystem);
  
          //$filesystem-&gt;copy('upload/fo.png', 'storage/');
  
      if ($abc) {
          return 1;
      }
      else {
          return 0;
      }
  </code></pre>
  
  <p>Thats the code so far just to get the file, i would really appreciate if someone could help me out with this, Thanks.</p>