Skip to content

Commit 8f40222

Browse files
authored
Merge pull request #135 from victormlg/mkdirpackage
CFE-4520: Fixed missing "packages" dir with install --package on fresh cf-remote install
2 parents f88b567 + c5e093d commit 8f40222

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cf_remote/commands.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ def _download_urls(urls):
111111
paths.append(package_url)
112112
continue
113113

114-
if not os.path.isdir(urls_dir):
115-
os.mkdir(urls_dir)
114+
os.makedirs(urls_dir, exist_ok=True)
116115

117116
# separate name from url and construct path for downloaded file
118117
url, name = package_url, get_package_name(package_url)

0 commit comments

Comments
 (0)