mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-18 03:12:18 +12:00
rewrite create function
CreateDirectory does nothing if the dir exists
This commit is contained in:
parent
58de249f1d
commit
3039f744a5
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue