title: CSV file losing content when uploading to sftp server
body: <p>Im making CSV files with phpseclib, getting content from DB and then im uploading them to a server using SFTP, but they are losing the content. When the file is created is everything ok. After the upload the file goes to the correct folder in the server but goes empty.</p>
  
  <pre><code> public function sendDailyStocks($StocksInno, $StocksFarfetch, $myfile){
  
         $return = true;
  
         if (!$this-&gt;put($StocksFarfetch.$myfile, $this-&gt;get($StocksInno.$myfile))){
  
             $return = false;
         }else{
  
             if(!unlink($StocksInno.$myfile)){
  
                 $return = false;
             }
  
         }
         return $return;
      }
  </code></pre>
  
  <p>Any ideias what can be? Thanks</p>