cancel
Showing results for 
Search instead for 
Did you mean: 

Method definition is incorrect ?

SOLVED

Method definition is incorrect ?

I am trying to use Varien_Io_Sftp::write(), as per its definition the second parameter should be a local file but as per the Net_SFTP:: put() it should be the content we want to write in file. 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Method definition is incorrect ?

Yes You are correct,

Second Parameter are filename which belongs to your content.

Check reference  link,

http://blog.webworkmate.com/magentodoc/html/d2/da5/class_varien___io___sftp.html#abc3fd10288e2be8d31...

write	($filename,$src,$mode = null)			
Write a file

Parameters:
$src 	Must be a local file name
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

View solution in original post

1 REPLY 1

Re: Method definition is incorrect ?

Yes You are correct,

Second Parameter are filename which belongs to your content.

Check reference  link,

http://blog.webworkmate.com/magentodoc/html/d2/da5/class_varien___io___sftp.html#abc3fd10288e2be8d31...

write	($filename,$src,$mode = null)			
Write a file

Parameters:
$src 	Must be a local file name
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial