mirror of
https://github.com/Dvorinka/SpotifyRecAlg.git
synced 2026-06-04 04:23:02 +00:00
first commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import os
|
||||
|
||||
from swingmusic.settings import Paths
|
||||
|
||||
|
||||
def get_client_files_extensions():
|
||||
"""
|
||||
Get all the file extensions for the client files
|
||||
"""
|
||||
|
||||
extensions = set()
|
||||
for _root, _dirs, files in os.walk(Paths().client_path):
|
||||
for file in files:
|
||||
ext = file.split(".")[-1]
|
||||
extensions.add("." + ext)
|
||||
|
||||
return extensions
|
||||
Reference in New Issue
Block a user