ultralytics 8.0.79 expand Docs reference section (#2053)
Co-authored-by: Ayush Chaurasia <ayush.chaurarsia@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Fri3dChicken <87434761+AmoghDhaliwal@users.noreply.github.com>
This commit is contained in:
parent
47bd8b433b
commit
31db8ed163
106 changed files with 2570 additions and 529 deletions
|
|
@ -30,13 +30,13 @@ def increment_path(path, exist_ok=False, sep='', mkdir=False):
|
|||
directory if it does not already exist.
|
||||
|
||||
Args:
|
||||
path (str or pathlib.Path): Path to increment.
|
||||
exist_ok (bool, optional): If True, the path will not be incremented and will be returned as-is. Defaults to False.
|
||||
sep (str, optional): Separator to use between the path and the incrementation number. Defaults to an empty string.
|
||||
mkdir (bool, optional): If True, the path will be created as a directory if it does not exist. Defaults to False.
|
||||
path (str, pathlib.Path): Path to increment.
|
||||
exist_ok (bool, optional): If True, the path will not be incremented and returned as-is. Defaults to False.
|
||||
sep (str, optional): Separator to use between the path and the incrementation number. Defaults to ''.
|
||||
mkdir (bool, optional): Create a directory if it does not exist. Defaults to False.
|
||||
|
||||
Returns:
|
||||
pathlib.Path: Incremented path.
|
||||
(pathlib.Path): Incremented path.
|
||||
"""
|
||||
path = Path(path) # os-agnostic
|
||||
if path.exists() and not exist_ok:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue