mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
27 lines
579 B
C#
27 lines
579 B
C#
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");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|