diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 7ed69840d..7b888fb18 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -244,6 +244,7 @@ class File(models.Model): format=config['formats'][0]) if created: stream.video.name = stream.name() + ox.makedirs(os.path.dirname(stream.video.path)) with open(stream.video.path, 'w') as f: f.write(chunk.read()) else: