Skip to content

Commit 11f0101

Browse files
committed
Added delete all snapshots button
1 parent 6a25570 commit 11f0101

File tree

5 files changed

+44
-14
lines changed

5 files changed

+44
-14
lines changed

app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ async def deleteAllSnapshots(background_tasks: BackgroundTasks):
600600
"""
601601
dirToClean = './storage/snapshots/'
602602
for item in os.listdir(dirToClean):
603-
item_path = os.path.join(folder_path, item)
603+
item_path = os.path.join(dirToClean, item)
604604
if os.path.isfile(item_path):
605605
os.remove(item_path)
606606
print(f"The directory {dirToClean} ws cleared.")

0 commit comments

Comments
 (0)