Skip to content

Commit

Permalink
Fix makedirs call to path_exists to pass url (#1592)
Browse files Browse the repository at this point in the history
Co-authored-by: Anne Holler <anne@vmware.com>
  • Loading branch information
amholler and anneholler committed Dec 11, 2021
1 parent 9573f18 commit d0d0a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ludwig/utils/fs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def rename(src, tgt):
def makedirs(url, exist_ok=False):
fs, path = get_fs_and_path(url)
fs.makedirs(path, exist_ok=exist_ok)
if not path_exists(path):
if not path_exists(url):
with fsspec.open(url, mode="wb") as f:
pass

Expand Down

0 comments on commit d0d0a70

Please sign in to comment.