Ais commited on
Commit
081917b
·
verified ·
1 Parent(s): 18aea39

Update app/download_adapter.py

Browse files
Files changed (1) hide show
  1. app/download_adapter.py +0 -2
app/download_adapter.py CHANGED
@@ -24,13 +24,11 @@ def download_latest_adapter():
24
 
25
  os.makedirs(LOCAL_DEST, exist_ok=True)
26
 
27
- # Clear any existing files in the adapter folder
28
  for f in os.listdir(LOCAL_DEST):
29
  file_path = os.path.join(LOCAL_DEST, f)
30
  if os.path.isfile(file_path):
31
  os.remove(file_path)
32
 
33
- # Copy all files from latest adapter version to local adapter/
34
  for file in os.listdir(src):
35
  shutil.copy(os.path.join(src, file), os.path.join(LOCAL_DEST, file))
36
 
 
24
 
25
  os.makedirs(LOCAL_DEST, exist_ok=True)
26
 
 
27
  for f in os.listdir(LOCAL_DEST):
28
  file_path = os.path.join(LOCAL_DEST, f)
29
  if os.path.isfile(file_path):
30
  os.remove(file_path)
31
 
 
32
  for file in os.listdir(src):
33
  shutil.copy(os.path.join(src, file), os.path.join(LOCAL_DEST, file))
34