jspr commited on
Commit
4dcf56b
1 Parent(s): 51ff69d

Update arxiv.py

Browse files
Files changed (1) hide show
  1. arxiv.py +3 -0
arxiv.py CHANGED
@@ -13,6 +13,9 @@ def get_paper(paper_url):
13
 
14
  suffix = 'paper-dir/' + eprint_url.replace("https://arxiv.org/e-print/", "")
15
 
 
 
 
16
  # check if the directory exists
17
  if os.path.exists(suffix):
18
  print("Paper already downloaded, skipping download")
 
13
 
14
  suffix = 'paper-dir/' + eprint_url.replace("https://arxiv.org/e-print/", "")
15
 
16
+ if not os.path.exists("paper-dir"):
17
+ call(["mkdir", 'paper-dir'])
18
+
19
  # check if the directory exists
20
  if os.path.exists(suffix):
21
  print("Paper already downloaded, skipping download")