mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
拆分代码4
This commit is contained in:
21
shell/Commands/FileSystem/MkdirCommand.cs
Normal file
21
shell/Commands/FileSystem/MkdirCommand.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace CMLeonOS.Commands.FileSystem
|
||||
{
|
||||
public static class MkdirCommand
|
||||
{
|
||||
public static void ProcessMkdir(CMLeonOS.FileSystem fileSystem, string args)
|
||||
{
|
||||
if (string.IsNullOrEmpty(args))
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Red;
|
||||
Console.WriteLine("Please specify a directory name");
|
||||
Console.ResetColor();
|
||||
}
|
||||
else
|
||||
{
|
||||
fileSystem.MakeDirectory(args);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user