예제 #1
0
파일: Commands.cs 프로젝트: alexf2/CQG
            protected override void Construct()
            {
                _targetDir = _arguments[0];
                if (_targetDir.Steps.Length == 0)
                {
                    throw new ApplicationException(String.Format("Can't create directory '{0}'. Name is missing.", _targetDir.Arg));
                }

                _targetDir.SeparateLastStep(out _newSubDir, ArgInfo.TargetType.Dir, ArgInfo.TargetType.Dir);
            }
예제 #2
0
파일: Commands.cs 프로젝트: alexf2/CQG
            protected override void Construct()
            {
                _pathWhereToMake = _arguments[0];
                if (_pathWhereToMake.Steps.Length == 0)
                {
                    throw new ApplicationException(String.Format("Can't create a file '{0}'. Name is missing.", _pathWhereToMake.Arg));
                }

                _pathWhereToMake.SeparateLastStep(out _fileName, ArgInfo.TargetType.Dir, ArgInfo.TargetType.File);
            }