3
I am trying to create a script in Flask and came across the following situation:
I have in my code a for that sweeps 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 found respectively
Example: my for found 4 sub-directories (dir1, dir2, dir3, dir4). Therefore, in my layout will have 4 checkbox (dir1, dir2, dir3, dir4).
Anyone can help?