Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

晕啊。。。被upload接口吭了 #76

Closed
liyongxiong opened this issue Aug 23, 2014 · 3 comments
Closed

晕啊。。。被upload接口吭了 #76

liyongxiong opened this issue Aug 23, 2014 · 3 comments

Comments

@liyongxiong
Copy link

upload [localpath] [remotepath] [ondup] - upload a file or directory (recursively)

定义是这样的,我以为remotepath仅仅是目录,上传一个文件的时候竟然是文件把服务器的文件夹给覆盖了。。。。。怎么办啊

本想把a.txt 上传到/abc目录,我用命令:
upload /local/a.txt /abc

然后服务器的abc文件夹就没了,包括底下全部东西。。。回收站也没有,历史版本也没有。。。。

@houtianze
Copy link
Owner

如果本地还有备份,重新上传吧。。。如果没有,那好像没啥办法了。。
这个是有点危险,我考虑改一下。

@liyongxiong
Copy link
Author

没有备份。。。还好损失不算严重

2014-08-24 1:47 GMT+08:00 houtianze notifications@github.com:

如果本地还有备份,重新上传吧。。。如果没有,那好像没啥办法了。。
这个是有点危险,我考虑改一下。


Reply to this email directly or view it on GitHub
#76 (comment).

@houtianze houtianze reopened this Sep 2, 2014
@houtianze
Copy link
Owner

改了,现在upload一个文件时,会先检查remotepath是否存在,并且是个目录,如果是这样,会上传到这个目录下,而不是“覆盖”掉这个目录。
谢谢反馈。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants