I'm trying to create a script in Flask and I came across the following situation:
I have in my code a for which scans the subdirectories of a root directory:
for root, dirs, files in os.walk(destination):
for name in dirs:
...
I need to put a checkbox list in my html layout with the names of the subdirectories respectively found
Example: mine has found 4 subdirectories (dir1, dir2, dir3, dir4). So in my layout I will have 4 checkboxes (dir1, dir2, dir3, dir4).
Can anyone help?