This commit is contained in:
Trym Lund Flogard 2021-06-02 20:03:09 +02:00
parent 1f2878a134
commit 6226379dbd
2 changed files with 721 additions and 717 deletions

1432
dist/index.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -167,11 +167,13 @@ export class NextcloudClient {
fsSync.createReadStream(file)
.pipe(stream);
return await new Promise<string>((resolve, reject) => {
await new Promise<void>((resolve, reject) => {
stream.on('error', () => reject("Failed to upload file"))
.on('pipe', () => core.info("pipe"))
.on('finish', () => resolve(remoteFilePath));
.on('finish', () => resolve());
});
core.info("finish");
return remoteFilePath;
}
private async shareFile(remoteFilePath: string) {