def METHOD_NAME():
    if len(sys.argv) < 2:
        sys.exit('\n\tNeed at least 1 argument:\n\n <path to files>\n[optional:'
                 '<output dir>] \n[optional: <combine channels option -c>]\n'
                 '[optional: <invert West and South option -i>]\n\n')
    outdir = None
    combine_flag = False
    inversion_flag = False
    if len(sys.argv) > 2:
        optionals = sys.argv[2:]
        for idx_o, o in enumerate(optionals):
            if o[0] != '-':
                outdir = o
                continue
            option = o[1].lower()
            if option not in ['c', 'i']:
                print('unknown option: {0}'.format(option))
                continue
            if option == 'c':
                combine_flag = True
            if option == 'i':
                inversion_flag = True
    pathname_raw = sys.argv[1]
    # we need relative paths here!!!
    indir = pathname_raw  # op.abspath(op.realpath(pathname_raw))
    if not op.isdir(indir):
        raise MTex.MTpyError_inputarguments(
            'Data file(s) path not existing: {0}'.format(indir))
    # define output directory for storing miniSeed files
    #outpath = op.join(os.curdir,'miniSeed')
    if outdir is not None:
        try:
            outpath = op.abspath(op.join(os.curdir, outdir))
            if not op.exists(outpath):
                try:
                    os.makedirs(outpath)
                except:
                    raise
            if not os.access(outpath, os.W_OK):
                raise
        except:
            print('Cannot generate writable output directory {0} - using generic'\
                ' location "ascii" instead'.format(outpath))
            outdir = None
    if outdir is None:
        outpath = op.join(os.curdir, 'ascii')
        try:
            if not op.exists(outpath):
                try:
                    os.makedirs(outpath)
                except:
                    raise
            if not os.access(outpath, os.W_OK):
                raise
        except:
            sys.exit('Error ! - Cannot generate writable output directory '
                     '"ascii" - abort...')
    outdir = op.abspath(outpath)
    convert_ms2ts(indir, outdir, combine_flag, inversion_flag)