Skip to content

Commit

Permalink
Backup folder check
Browse files Browse the repository at this point in the history
- Check if backup folder exists, if not, create it
  • Loading branch information
MikeAtom committed Jul 21, 2023
1 parent 7e43ee2 commit c7cd562
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/scripts/db_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
storedData = dict()
dataPath = ""

# Check if backup folder exists, if not, create it
if not os.path.exists(defaults.dbPath + 'backup'):
os.makedirs(defaults.dbPath + 'backup')

# Initialize songs database and get information about songs and stored images
# Returns amount of songs and stored images
Expand Down

0 comments on commit c7cd562

Please sign in to comment.