feat: pathing

This commit is contained in:
tresabhi committed 2025-01-23 21:43:54 -06:00
1 parent 8e4f4c39bb
commit 82af101f9c
5 files changed
+60 -16

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
using CLI.Models;
namespace CLI.Functions
{
class DLC
{
public static void Run(Arguments args)
{
if (args.raw.Length < 2)
{
throw new ArgumentException("No directory provided");
}
string dlcPaksDirectory = args.raw[1];
if (args.sanitize && Directory.Exists(dlcPaksDirectory))
{
Directory.Delete(dlcPaksDirectory, true);
}
Directory.CreateDirectory(dlcPaksDirectory);
string testFilePath = Path.Combine(dlcPaksDirectory, "test.txt");
File.WriteAllText(testFilePath, "test");
}
}
}