Skip to content

Commit 4bb6d94

Browse files
committed
create tarballs directory automatically
closes #27
1 parent 7e2834c commit 4bb6d94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

legi/download.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616

1717
def download_legi(dst_dir):
18+
if not os.path.exists(dst_dir):
19+
os.mkdir(dst_dir)
1820
local_files = {filename: {} for filename in os.listdir(dst_dir)}
1921
ftph = ftplib.FTP()
2022
ftph.connect(DILA_FTP_HOST, DILA_FTP_PORT)

0 commit comments

Comments
 (0)