duanan1228 2015-11-13 12:53
浏览 408

在laravel中通过SFTP下载多个文件

I need to transfer files over sftp in laravel. By now, I've been able to upload and download a single file with SSH facade such as

SSH::into('staging')->put('somefile', 'copyfile');
SSH::into('staging')->get('somefile', 'copyfile');

But my problem starts when I try to upload/download several files. I make something like

SSH::into('staging')->put('somefolder/*', 'somedestfolder/');

But nothing happens and Laravel documentation I found in

http://laravel.com/docs/4.2/ssh#sftp-downloads

Does not help much.

I was able to run a ssh session and do a cp command, but I'm not sure I could do this in the production server.

Does anybody know how to do it this?.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 lammps拉伸应力应变曲线分析
    • ¥15 C++ 头文件/宏冲突问题解决
    • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
    • ¥50 安卓adb backup备份子用户应用数据失败
    • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
    • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
    • ¥30 python代码,帮调试,帮帮忙吧
    • ¥15 #MATLAB仿真#车辆换道路径规划
    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
    • ¥15 数据可视化Python