rewrite create function

CreateDirectory does nothing if the dir exists
This commit is contained in:
Jack Baron 2020-10-22 15:32:09 +01:00
parent 58de249f1d
commit 3039f744a5
No known key found for this signature in database
GPG key ID: CD10BCEEC646C064

View file

@ -13,14 +13,10 @@ namespace ModAssistant.API
private const string PlaylistsFolder = "Playlists";
private static readonly string BeatSaberPath = Utils.BeatSaberPath;
public static bool CreatePlaylistsFolder()
public static void CreatePlaylistsFolder()
{
string playlistsPath = Path.Combine(BeatSaberPath, PlaylistsFolder);
if (!Directory.Exists(playlistsPath))
{
Directory.CreateDirectory(playlistsPath);
}
return true;
Directory.CreateDirectory(playlistsPath);
}
public static async Task DownloadAll(Uri uri)