[Newbie] I have written a python program that does some data manipulations to imported xlsx files and save them as csv. It looks kinda like this:
#!/usr/bin/env python2.7
def main():
imported_files = import_files_from_input_folder('/input/*.xlsx')
data_handling_functions(imported_files)
save_processed_files_to_output_folder('/output/')
if __name__ = '__main__':
main()
I want to create a web app (using flask) for the users to use the program, by uploading their files to 'input' folder, and then download the results from 'output' folder. Thanks to this topic and some others, I know how to upload multiple files into 'input' folder.
Now, my first question is: how to list all the files in 'output' folder and let users download them?
My second question is: how to wrap/integrate the flask part into the existed program?