creating tmp dir as needed
This commit is contained in:
parent
d6e9b1f6c4
commit
27da151340
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ class LLVMBotArchiveScanner:
|
|||
return EMAIL_ARCHIVE_URL.format(year=month.year, month=month.strftime('%B'))
|
||||
|
||||
def _download_archive(self, month: datetime.date):
|
||||
os.makedirs(self._tmpdir, exist_ok=True)
|
||||
filename = os.path.join(self._tmpdir, 'llvmdev-{year}-{month:02d}.txt'.format(year=month.year, month=month.month))
|
||||
url = self._generate_archive_url(month)
|
||||
# FIXME: decompress the files
|
||||
|
|
Loading…
Reference in a new issue