Skip to content

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

@wind1719

Description

@wind1719

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";

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions