Introduces the means to acquire the user's music directory path.
Feature suggested in #141. Should be the final feature needed to close the issue.
Written tests and done my own tests on Windows, MacOS, and Linux using an interactive Python shell and they produce the expected results when calling the function. As I have explained in my previous PRs I can't test Android in a similar fashion as I did the other OSs since I don't have access to an Android device.
Introduces the means to acquire the user's music directory path.
Feature suggested in #141. Should be the final feature needed to close the issue.
Written tests and done my own tests on Windows, MacOS, and Linux using an interactive Python shell and they produce the expected results when calling the function. As I have explained in my previous PRs I can't test Android in a similar fashion as I did the other OSs since I don't have access to an Android device.
References: Android:
Environment.DIRECTORY_MUSIC
: https://developer.android.com/reference/android/os/Environment#DIRECTORY_MUSIC/storage/emulated/0/Music
: https://developer.android.com/training/data-storage/shared/media#media_storeMacOS:
~/Music
: https://github.com/adrg/xdg/blob/master/README.md#xdg-user-directoriesUnix:
XDG_MUSIC_DIR
&~/Music
: https://wiki.archlinux.org/title/XDG_user_directories (also from the link in MacOS)Windows:
CSIDL_MYMUSIC
My Music
&%USERPROFILE%\Music
: from regedit and https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid (search for CSIDL_MYMUSIC)