timestamp_full_zip = [i['value'] for i in files_dict if 'FULL.zip' in i['key'] ]
delete_files = [i['key'] for i in files_dict if i['value'] < timestamp_full_zip[0] ]
import winreg
try:
access_registry = winreg.ConnectRegistry(None, winreg.HKEY_CURRENT_USER)
access_key = winreg.OpenKey(access_registry, r"Software\\JavaSoft\\Prefs\\jetbrains")
except OSError:
print("не удается найти раздел")
if 'access_key' in locals():
list_keys_reg = []
i = 0
while True:
try:
x = winreg.EnumKey(access_key, i)
list_keys_reg.append(x)
print(list_keys_reg)
i += 1
except OSError:
break
except Exception as e:
print(e)