pengdaqian commited on
Commit
8787dd3
1 Parent(s): de7de27
Files changed (1) hide show
  1. scan.py +1 -0
scan.py CHANGED
@@ -47,6 +47,7 @@ def clamd_file(file_path: str, clamd):
47
  if file_path.startswith("http"):
48
  import urllib.request
49
  tmp_path = f'/tmp/clamd_{file_path.split("/")[-1].split("?")[0]}'
 
50
  urllib.request.urlretrieve(file_path, tmp_path)
51
  ret = clamd.scan_file(tmp_path)
52
  if ret is None:
 
47
  if file_path.startswith("http"):
48
  import urllib.request
49
  tmp_path = f'/tmp/clamd_{file_path.split("/")[-1].split("?")[0]}'
50
+ print("tmp_path ", tmp_path)
51
  urllib.request.urlretrieve(file_path, tmp_path)
52
  ret = clamd.scan_file(tmp_path)
53
  if ret is None: