Net::SFTP from memory instead of file?

F

Fearless Fosdick

I have to sftp some data, but it's not allowed to live on the
filesystem. Short of implementing an sftp client, is there any other
solution I can use?
 
A

Anno Siegel

Fearless Fosdick said:
I have to sftp some data, but it's not allowed to live on the
filesystem. Short of implementing an sftp client, is there any other
solution I can use?

From the documentation of Net::SFTP I gather that the method ->do_write
accepts the data to be written from a string. Where's the problem?

Anno
 
F

Fearless Fosdick

From the documentation of Net::SFTP I gather that the method ->do_write
accepts the data to be written from a string. Where's the problem?

Well, the documentation says that because the author of the module put
perldoc comments in front of internal methods. In fact do_write() does
not stand by itself and can't reasonably be called from outside the
module. I needed to subclass Net::SFTP and hack up the guts of the put()
routine to do what I wanted. I had been hoping to find a cleaner way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top