コード例 #1
0
        public override void Execute()
        {
            if (this.Data.Length != 2)
            {
                throw new InvalidCommandException(this.Input);
            }

            var folderName = this.Data[1];

            inputOutputManager.CreateDirectoryInCurrentFolder(folderName);
        }
コード例 #2
0
        public override void Execute()
        {
            if (Data.Length != 2)
            {
                throw new InvalidCommandException(Input);
            }

            string directoryName = Data[1];

            inputOutputManager.CreateDirectoryInCurrentFolder(directoryName);
        }