Files
CMLeonOS/shell/Commands/FileSystem/MkdirCommand.cs

22 lines
545 B
C#
Raw Normal View History

2026-02-04 20:13:21 +08:00
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);
}
}
}
}