add loader and versioning

This commit is contained in:
Alex Bezdieniezhnykh
2025-06-10 08:53:57 +03:00
parent 7750025631
commit dcd0fabc1f
31 changed files with 284 additions and 123 deletions
+4 -1
View File
@@ -1,4 +1,6 @@
import io
import os
import boto3
@@ -33,8 +35,9 @@ cdef class CDNManager:
cdef download(self, str folder, str filename):
try:
os.makedirs(folder, exist_ok=True)
self.download_client.download_file(folder, filename, f'{folder}\\{filename}')
print(f'downloaded {filename} from the {folder} to current folder')
print(f'downloaded {filename} from the {folder}')
return True
except Exception as e:
print(e)