Skip to content

Commit

Permalink
fix: FileExistsError: [Errno 17] File exists: '/root/bentoml' (#4781)
Browse files Browse the repository at this point in the history
Update __init__.py
  • Loading branch information
tripathiarpan20 authored Jun 11, 2024
1 parent 2699c3b commit e40d1a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bentoml/_internal/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def validate_or_create_dir(*path: PathType) -> None:
if not path_obj.is_dir():
raise OSError(20, f"{path_obj} is not a directory")
else:
path_obj.mkdir(parents=True)
path_obj.mkdir(parents=True, exist_ok=True)


def calc_dir_size(path: PathType) -> int:
Expand Down

0 comments on commit e40d1a8

Please sign in to comment.