sezione gallery #138

Merged
paspo merged 7 commits from paspo/bglug.it:gallery-section into main 2024-07-22 19:18:53 +00:00
Showing only changes of commit da8066a1b6 - Show all commits

View File

@ -1,16 +0,0 @@
import os
# Ottieni il percorso della directory corrente
current_dir = os.getcwd()
# Crea una lista dei file nella directory corrente
file_list = os.listdir(current_dir)
# Apri un file di testo in modalità di scrittura
with open("file_list.txt", "w") as file:
# Scrivi ogni file nella lista sul file di testo, separato da una nuova riga
for filename in file_list:
file.write("[{{< figure src=\"" + filename + "\" title=\"abc\" width=\"20%\" >}}](" + filename + ")" + "\n")
print("L'elenco dei file è stato salvato in 'file_list.txt'.")