Skip to content

Commit

Permalink
create titledb folder
Browse files Browse the repository at this point in the history
  • Loading branch information
blawar committed Aug 4, 2019
1 parent ea04fe8 commit 46b6345
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nut/Nsps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 46b6345

Please sign in to comment.