def METHOD_NAME(dir, ls):
    incs = [opt.split('=').pop() for opt in opts if 'inc=' in opt]
    METHOD_NAME = []
    for f in ls:
        _f = os.path.join(dir, f)
        if not os.path.isdir(_f) and not _f.endswith('.py') and incs:
            if True not in [fnmatch(_f, inc) for inc in incs]:
                logging.debug('Not syncing %s, does not match include '
                              'filters (%s)' % (_f, incs))
                METHOD_NAME.append(f)
            else:
                logging.debug('Including file, which matches include '
                              'filters (%s): %s' % (incs, _f))
        elif (os.path.isfile(_f) and not _f.endswith('.py')):
            logging.debug('Not syncing file: %s' % f)
            METHOD_NAME.append(f)
        elif (os.path.isdir(_f) and not
              os.path.isfile(os.path.join(_f, '__init__.py'))):
            logging.debug('Not syncing directory: %s' % f)
            METHOD_NAME.append(f)
    return METHOD_NAME