První nahrdánícd

This commit is contained in:
2025-03-16 07:53:00 +01:00
commit 8712668ad4
23 changed files with 735 additions and 0 deletions

23
04 kontrola souboru.py Normal file
View File

@@ -0,0 +1,23 @@
import os,shutil,fdb
import re,datetime,funkce1
# Connect to the Firebird database
conn = fdb.connect(
dsn=r'localhost:c:\medicus 3\data\medicus.fdb', # Database path
user='SYSDBA', # Username
password="masterkey", # Password,
charset="win1250")
cesta=r"u:\NextcloudOrdinace\Dokumentace_ke_zpracování"
for soubor in os.listdir(cesta):
print(soubor)
if os.path.isfile(os.path.join(cesta, soubor)):
if funkce1.kontrola_struktury(soubor,conn):
# info.append(vrat_info_o_souboru(soubor,conn))
# os.remove(os.path.join(cesta,soubor))
continue
else:
funkce1.prejmenuj_chybny_soubor(soubor,cesta)