Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've uploaded a folder with extension .zip via a web interface and I want to save via SFTP so that a perl script can retrieve the folder, unzip it, and execute some instructions.

I've found these two utilities, ssh2_scp_send and ssh2_scp_recv, but they are related to files, not folders. Can anyone help?

share|improve this question

closed as off topic by CharlieRB, slhck Jan 8 '13 at 19:48

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
A folder with a ".zip" extension is not a folder, but just a single ZIP file. You can send it like any other file. Where have you uploaded it to? A server you control? Where do you want to save it via SFTP? Programming questions, e.g. with PHP are off topic on Super User though. Please consider asking a more specific example with the code you're already using over on Stack Overflow. –  slhck Jan 8 '13 at 19:48

1 Answer 1

SFTP does not work for getting an entire directory/folder. You should use SCP instead with the command: scp -r user@host:/the/path/

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.