mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-14 03:12:45 +00:00
feat: remove cache of old repositories
This commit is contained in:
@@ -114,6 +114,9 @@ export default class GitHubDownload extends GitHubBase implements SourceBase {
|
||||
}
|
||||
|
||||
async getFileContent(file: AnonymizedFile): Promise<Readable> {
|
||||
if (await storage.exists(file.originalCachePath)) {
|
||||
return storage.read(file.originalCachePath);
|
||||
}
|
||||
await this.download();
|
||||
// update the file list
|
||||
await this.repository.files({ force: true });
|
||||
|
||||
Reference in New Issue
Block a user