diff --git a/nut/Nsps.py b/nut/Nsps.py index 9de36ccc0..54fa0c37b 100644 --- a/nut/Nsps.py +++ b/nut/Nsps.py @@ -147,6 +147,7 @@ def load(fileName = 'titledb/files.json'): def save(fileName = 'titledb/files.json', map = ['id', 'path', 'version', 'fileSize']): lock.acquire() + os.makedirs(os.path.dirname(fileName), exist_ok = True) try: j = []