mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 05:41:36 +00:00
Rename downloadFile to downloadRawFile
This commit is contained in:
parent
e8dbe5ddcf
commit
7b2b5ed1d1
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue