def validate(self, args):
        try:
            msg = "DIRPATH '%s' not found or not a directory" % args.dirpath
            assert os.path.isdir(args.dirpath), msg
        except AssertionError as e:
            self._parser.error(str(e))
dataset/ETHPy150Open python-openxml/opc-diag/opcdiag/cli.py/RepackageCommand.validate/original