问题描述
我正在尝试从GitHub repo下载tarball存档,但是github repo tarball包含一个我不想要的顶级目录。目前,我得到了流并转发到另一个请求,没有解压缩到内存,这很好。我该如何实现?
let response = axios.get('<github-url>',{responseType: "stream" });
response.data; // whiche is tarball strema
球将包含
master
<repoOwner-repoName-commmitId>
// here will be repo files
现在我不想要路径。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)