Skip to content

Commit

Permalink
Merge pull request #213 from roboflow/change-download-overwrite-flag
Browse files Browse the repository at this point in the history
Change `download()` to not overwrite files by default
  • Loading branch information
capjamesg authored Jan 10, 2024
2 parents d02af38 + 6f7d87c commit 9c8f596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roboflow/core/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def __wait_if_generating(self, recurse=False):
sys.stdout.flush()
return

def download(self, model_format=None, location=None, overwrite: bool = True):
def download(self, model_format=None, location=None, overwrite: bool = False):
"""
Download and extract a ZIP of a version's dataset in a given format
Expand All @@ -168,7 +168,7 @@ def download(self, model_format=None, location=None, overwrite: bool = True):
Args:
model_format (str): A format to use for downloading
location (str): An optional path for saving the file
overwrite (bool): An optional flag to prevent dataset overwrite when dataset is already downloaded
overwrite (bool): An optional flag to overwrite an existing dataset if the dataset has already downloaded
Returns:
Dataset Object
Expand Down

0 comments on commit 9c8f596

Please sign in to comment.