def __init__(self, dirAbsPath, newDirName):
        super(RenameDirectoryCommand, self).__init__()
        self._dirAbsPath = dirAbsPath.rstrip(os.sep)
        self._newDirName = newDirName.strip(os.sep)
        if '/' in self._newDirName or '\\' in self._newDirName:
            raise ValueError("OS pathname separator should not be in '{}'".format(self._newDirName))