import os
main_path = 'd:\\downloads'


def get_file_paths(folder_path) ->list:
    file_paths = [f.path for f in os.scandir(folder_path) if not f.is_dir()]
    return file_paths


def get_file_names(folder_path) ->list:
    file_paths = [f.path for f in os.scandir(folder_path) if not f.is_dir()]
    file_names = [f.split('\\')[-1] for f in file_paths]
    return file_names


print(get_file_paths(main_path))
print(get_file_names(main_path))

472836a7c446c23f68c312356802f7034f2a0d83
<mask token>


def get_file_paths(folder_path) ->list:
    file_paths = [f.path for f in os.scandir(folder_path) if not f.is_dir()]
    return file_paths


<mask token>

<mask token>


def get_file_paths(folder_path) ->list:
    file_paths = [f.path for f in os.scandir(folder_path) if not f.is_dir()]
    return file_paths


def get_file_names(folder_path) ->list:
    file_paths = [f.path for f in os.scandir(folder_path) if not f.is_dir()]
    file_names = [f.split('\\')[-1] for f in file_paths]
    return file_names


print(get_file_paths(main_path))
print(get_file_names(main_path))

<mask token>
main_path = 'd:\\downloads'


def get_file_paths(folder_path) ->list:
    file_paths = [f.path for f in os.scandir(folder_path) if not f.is_dir()]
    return file_paths


def get_file_names(folder_path) ->list:
    file_paths = [f.path for f in os.scandir(folder_path) if not f.is_dir()]
    file_names = [f.split('\\')[-1] for f in file_paths]
    return file_names


print(get_file_paths(main_path))
print(get_file_names(main_path))

import os
main_path = 'd:\\downloads'


def get_file_paths(folder_path) ->list:
    file_paths = [f.path for f in os.scandir(folder_path) if not f.is_dir()]
    return file_paths


def get_file_names(folder_path) ->list:
    file_paths = [f.path for f in os.scandir(folder_path) if not f.is_dir()]
    file_names = [f.split('\\')[-1] for f in file_paths]
    return file_names


print(get_file_paths(main_path))
print(get_file_names(main_path))
