This commit is contained in:
2025-10-06 17:49:09 +02:00
parent 97a678ef4a
commit 4cbf44c9c9
4 changed files with 422 additions and 0 deletions

13
40 TowerLibrary.py Normal file
View File

@@ -0,0 +1,13 @@
import os
from pathlib import Path
cesta=r"\\tower\library"
for dirpath,dirnames,filenames in os.walk(cesta):
for ddir in dirnames:
# print(ddir)
p=Path(dirpath, ddir)
if not any(p.iterdir()):
print(f"Directory is empty {p}")
p.rmdir()
print(f"Directory was deleted {p}")