Skip to content

Commit

Permalink
Delete unrealistic function
Browse files Browse the repository at this point in the history
  • Loading branch information
Pterko committed Jan 26, 2021
1 parent f189545 commit 8939d8f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
8 changes: 0 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,6 @@ export class YandexDiskClient {
return this.yaResources.uploadFile(path, buffer);
}

/** Used to upload buffer to yandex.disk */
public async uploadFileStream(
stream: ReadableStream,
path: string
): Promise<{ status: string; resource?: Resource }> {
return this.yaResources.uploadFileStream(path, stream);
}

/** Used to create a folder. Don't support recursive creation. */
public async createFolder(
path: string,
Expand Down
7 changes: 0 additions & 7 deletions src/ya/ya-resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@ class YaResourses {
throw new Error('File link not found');
}

async uploadFileStream(
path: string,
stream: ReadableStream,
): Promise<{ status: string; error?: any; resource?: Resource }> {

}

async uploadFile(
path: string,
buffer: Buffer
Expand Down

0 comments on commit 8939d8f

Please sign in to comment.