mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: pathing
This commit is contained in:
1 parent
8e4f4c39bb
commit
82af101f9c
5 files changed
+60
-16
No files matched your search
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user