X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fcache.py;h=9603c8b38f43fb049d38879db8b140dbc2b59e06;hb=29344ced1f406ec9a3d718ece10c5a2b183a7b6f;hp=c4170de8c1b1f5885642105f67c86fb3b18bf287;hpb=85f15b7261386985e8bb7f9b357e55b5f21c21a7;p=mpd-sima.git diff --git a/sima/lib/cache.py b/sima/lib/cache.py index c4170de..9603c8b 100644 --- a/sima/lib/cache.py +++ b/sima/lib/cache.py @@ -73,7 +73,7 @@ class FileCache: self.forever = forever if not os.path.isdir(self.directory): - os.mkdir(self.directory) + os.makedirs(self.directory, mode=0o755) def encode(self, val): return md5(val.encode('utf-8')).hexdigest()