Skip to content

Commit

Permalink
Removed unneeded directory creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwdle committed Sep 6, 2024
1 parent 6deb816 commit 8372b66
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions generatePlaylist.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ def generate_m3u_playlist(playlist_directory, music_directory, output_file, excl
Generates an m3u playlist with the given filename in the given directory.
The playlist file will contain relative paths and other information for all files with matching extensions in the given music directory, not including any provided exclusions.
"""
# Ensure that the directories exist
os.makedirs(music_directory, exist_ok=True)

with open(f"{music_directory}{os.path.sep}{output_file}", 'w', encoding='utf-8') as playlist:
# Playlist Header
Expand Down

0 comments on commit 8372b66

Please sign in to comment.