def METHOD_NAME(path):
    allFiles = list()
    for entry in os.listdir(path):
        fullPath = os.path.join(path, entry)
        if not os.path.isdir(fullPath):
            allFiles.append(fullPath)
    for entry in os.listdir(path):
        fullPath = os.path.join(path, entry)
        if os.path.isdir(fullPath):
            allFiles = allFiles + METHOD_NAME(fullPath)
    return allFiles