I noticed that the get_win_folder_via_ctypes function calls SHGetFolderPathW. The offical documentation for SHGetFolderPathW says:
Note As of Windows Vista, this function is merely a wrapper for SHGetKnownFolderPath. The CSIDL value is translated to its associated KNOWNFOLDERID and then SHGetKnownFolderPath is called. New applications should use the known folder system rather than the older CSIDL system, which is supported only for backward compatibility.
It probably doesn’t matter that much, but it would be nice if platformdirs used the newer SHGetKnownFolderPath function instead of the older deprecated SHGetFolderPathW function.
I noticed that the
get_win_folder_via_ctypesfunction callsSHGetFolderPathW. The offical documentation forSHGetFolderPathWsays:It probably doesn’t matter that much, but it would be nice if
platformdirsused the newerSHGetKnownFolderPathfunction instead of the older deprecatedSHGetFolderPathWfunction.