def find_files(directory, ext=None, recurse=True, case_sensitive=False,
               limit=None, offset=0):

    if ext is None:
        ext = ['aac', 'au', 'flac', 'm4a', 'mp3', 'ogg', 'wav']

    elif isinstance(ext, six.string_types):
        ext = [ext]

    # Cast into a set
    ext = set(ext)

    # Generate upper-case versions
    if not case_sensitive:
        # Force to lower-case
        ext = set([e.lower() for e in ext])
        # Add in upper-case versions
        ext |= set([e.upper() for e in ext])

    files = []

    if recurse:
        for walk in os.walk(directory):
            files.extend(__get_files(walk[0], ext))
    else:
        files = __get_files(directory, ext)

    files.sort()
    files = files[offset:]
    if limit is not None:
        files = files[:limit]

    return files
Initialize the Yamaha Receiver.
dataset/ETHPy150Open bmcfee/librosa/librosa/util/files.py/find_files--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/yamaha.py/YamahaDevice.__init__