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

Code.setDir在windows平台上不兼容 #20

Open
tangkai1719 opened this issue Aug 9, 2017 · 1 comment
Open

Code.setDir在windows平台上不兼容 #20

tangkai1719 opened this issue Aug 9, 2017 · 1 comment
Assignees

Comments

@tangkai1719
Copy link

code:
Code code = new Code().setDir(codeDir);
运行报错:
\tmp\code8b0409e1-95b6-4b40-b4e7-47fcf905a57f.zip (系统找不到指定的路径。)

应该是这个地方hardcode有问题,没有考虑windows平台:
fc-java-sdk/src/main/java/com/aliyuncs/fc/model/Code.java

 public Code setDir(String dir) throws IOException {
        String tempZipPath = "/tmp/code" + UUID.randomUUID() + ".zip";
@shuaichang
Copy link
Collaborator

Thanks for the feedback, taking a look

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