paddlenlp/ops/ext_utils.py
def _get_files(path):
    """
    Helps to list all files under the given path.
    """
    if os.path.isfile(path):
        return [path]
    all_files = []
    for root, _dirs, files in os.walk(path, followlinks=True):
        for file in files:
            file = os.path.join(root, file)
            all_files.append(file)
    return all_files

    Helps to list all files under the given path.
    
Helps to list all files under the given path.
Helps to list all files under the given path .
def _get_files(path):
    if os.path.isfile(path):
        return [path]
    all_files = []
    for root, _dirs, files in os.walk(path, followlinks=True):
        for file in files:
            file = os.path.join(root, file)
            all_files.append(file)
    return all_files
def _get_files ( path ) : if os . path . isfile ( path ) : return [ path ] all_files = [ ] for root , _dirs , files in os . walk ( path , followlinks = True ) : for file in files : file = os . path . join ( root , file ) all_files . append ( file ) return all_files
Helps to list all files under the given path.
Helps to list all files under the given path .
"""
    Helps to list all files under the given path.
    """
path