fix directory exists

This commit is contained in:
Trym Lund Flogard 2021-06-02 16:40:06 +02:00
parent 83cbe577f4
commit e96c1262aa
2 changed files with 424 additions and 424 deletions

846
dist/index.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -105,7 +105,7 @@ export class NextcloudClient {
private async zipFiles(specs: FileSpec[]): Promise<string> {
const tempArtifactDir = path.join(os.tmpdir(), this.guid);
const artifactPath = path.join(tempArtifactDir, `artifact-${this.artifact}`);
await fs.mkdir(artifactPath, { recursive: true });
await fs.mkdir(path.join(artifactPath, this.artifact), { recursive: true });
for (let spec of specs) {
await fs.copyFile(spec.absolutePath, path.join(artifactPath, spec.uploadPath));
}