From 7b2b5ed1d1b3824be8440515113e1fb48df3fb47 Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Thu, 9 Jan 2025 16:41:06 +0100 Subject: [PATCH] Rename downloadFile to downloadRawFile --- src/github/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github/client.ts b/src/github/client.ts index d699448..8d75420 100644 --- a/src/github/client.ts +++ b/src/github/client.ts @@ -71,7 +71,7 @@ export default class GithubClient { return; } - await this.downloadFile(url, destinationFile); + await this.downloadRawFile(url, destinationFile); this.metadataStore.data[destinationFile] = { localPath: destinationFile, remotePath: file.path, @@ -92,7 +92,7 @@ export default class GithubClient { * @param url URL to raw file content * @param destinationFile Local path where to save the file, relative to the vault */ - async downloadFile(url: string, destinationFile: string) { + async downloadRawFile(url: string, destinationFile: string) { // We're not setting auth headers here as we're not calling the Github API // directly but downloading the raw file, cause there are some size limitation // with the official API.