mirror of
https://github.com/instaloader/instaloader.git
synced 2024-08-19 13:19:37 +02:00
parent
0704602e50
commit
644fab1f5e
@ -1,6 +1,8 @@
|
|||||||
import configparser
|
import configparser
|
||||||
from datetime import datetime, timezone
|
from datetime import datetime, timezone
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
from os.path import dirname
|
||||||
|
from os import makedirs
|
||||||
|
|
||||||
|
|
||||||
class LatestStamps:
|
class LatestStamps:
|
||||||
@ -25,6 +27,7 @@ class LatestStamps:
|
|||||||
self.data.read(latest_stamps_file)
|
self.data.read(latest_stamps_file)
|
||||||
|
|
||||||
def _save(self):
|
def _save(self):
|
||||||
|
makedirs(dirname(self.file), exist_ok=True)
|
||||||
with open(self.file, 'w') as f:
|
with open(self.file, 'w') as f:
|
||||||
self.data.write(f)
|
self.data.write(f)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user