import os

from web_interface.auth import check_auth
import web_interface.file_utils
import paths

async def print_files_list(request):
    check_auth(request)
    return await web_interface.file_utils.list_dir(request, paths.STORAGE_FOLDER)

async def delete_print_file(request):
    check_auth(request)
    await web_interface.file_utils.remove(request, paths.STORAGE_FOLDER)
