Initial commit

This commit is contained in:
michaela.buzalkova
2025-09-30 08:22:44 +02:00
commit b45a8b2d00
29 changed files with 1486 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)