mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-09-28 23:31:33 +12:00
rewrite create function
CreateDirectory does nothing if the dir exists
This commit is contained in:
parent
58de249f1d
commit
3039f744a5
1 changed files with 2 additions and 6 deletions
|
@ -13,14 +13,10 @@ namespace ModAssistant.API
|
||||||
private const string PlaylistsFolder = "Playlists";
|
private const string PlaylistsFolder = "Playlists";
|
||||||
private static readonly string BeatSaberPath = Utils.BeatSaberPath;
|
private static readonly string BeatSaberPath = Utils.BeatSaberPath;
|
||||||
|
|
||||||
public static bool CreatePlaylistsFolder()
|
public static void CreatePlaylistsFolder()
|
||||||
{
|
{
|
||||||
string playlistsPath = Path.Combine(BeatSaberPath, PlaylistsFolder);
|
string playlistsPath = Path.Combine(BeatSaberPath, PlaylistsFolder);
|
||||||
if (!Directory.Exists(playlistsPath))
|
Directory.CreateDirectory(playlistsPath);
|
||||||
{
|
|
||||||
Directory.CreateDirectory(playlistsPath);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static async Task DownloadAll(Uri uri)
|
public static async Task DownloadAll(Uri uri)
|
||||||
|
|
Loading…
Reference in a new issue