def cmd_rmdir(*args):
    try:
        if args[0][1][0] == '~':
            args[0][1] = os.path.expanduser(args[0][1])
	os.removedirs(args[0][1])
        return "Directory {0} removed".format(args[0][1])
    except OSError as exception:
        if exception.errno != errno.EEXIST:
	    raise
dataset/ETHPy150Open ueg1990/twilix/twilix/cmd.py/cmd_rmdir/original