BuildScript/scripts/commands/MakeDirsCommand.py

14 lines
272 B
Python

from commands.ShCommand import ShCommand
class MakeDirsCommand:
def __init__(self, path):
assert path is not None
self.__path = path
def execute(self):
cmdText = "mkdir -p '{0}'".format(self.__path)
innerCommand = ShCommand(cmdText)
innerCommand.execute()