I want to use shell commands in the flask function. Is there any way? The following is a server.py file I wrote. I want to use shell commands such as shell cd, ls, etc. in the ??? section.
from flask import Flask
app = Flask(__name__)
@app.route('/getFromHtml')
def func():
????
if __name__ == "__main__":
app.run(host="127.0.0.1", port="5000")