Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,21 @@ for item in itens:
|
|
16 |
print(f"Pasta: {item}")
|
17 |
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
# Add the data directory to sys.path
|
20 |
sys.path.append(data_path)
|
21 |
|
|
|
16 |
print(f"Pasta: {item}")
|
17 |
|
18 |
|
19 |
+
|
20 |
+
# Diret贸rio que voc锚 deseja listar
|
21 |
+
diretorio = os.path.join(os.path.dirname(__file__), '..')
|
22 |
+
|
23 |
+
# Lista todos os arquivos no diret贸rio
|
24 |
+
itens = os.listdir(diretorio)
|
25 |
+
|
26 |
+
for item in itens:
|
27 |
+
caminho_item = os.path.join(diretorio, item)
|
28 |
+
if os.path.isfile(caminho_item):
|
29 |
+
print(f"Arquivo: {item}")
|
30 |
+
elif os.path.isdir(caminho_item):
|
31 |
+
print(f"Pasta: {item}")
|
32 |
+
|
33 |
+
|
34 |
# Add the data directory to sys.path
|
35 |
sys.path.append(data_path)
|
36 |
|