Check if Playlists folder exists before downloading

strings 3head
This commit is contained in:
Parapass 2020-06-29 08:29:59 -04:00 committed by GitHub
parent 2d53be9009
commit c170d91d26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,13 @@ namespace ModAssistant.API
private const string BSaberURLPrefix = "https://bsaber.com/PlaylistAPI/";
private const string PlaylistsFolder = "Playlists";
private static readonly string BeatSaberPath = Utils.BeatSaberPath;
string root = App.BeatSaberInstallDirectory;
string subdir = PlaylistsFolder;
if (!Directory.Exists(subdir))
{
Directory.CreateDirectory(subdir);
}
public static async Task DownloadAll(Uri uri)
{