You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to pull data using the DVC python API (v3.55.2), the os.mkdir(d) function at dvc/fs/dvc.py:574 raises an error if the directory already exists. This results in an unnecessary error where the expected behavior would be to overwrite or skip the directory instead of failing.
The error occurs when DVC tries to create an already existing directory.
File ".../python3.10/site-packages/dvc/fs/dvc.py", line 574, in _get
os.mkdir(d)
FileExistsError: [Errno 17] File exists:
Expected
When pulling data to a directory that already exists, DVC should either overwrite the existing directory or skip the directory creation step without raising an error.
Additional Information:
Error occurs at dvc/fs/dvc.py:574 when using os.mkdir(d) to create a directory.
The expected behavior is that DVC should handle existing directories more gracefully, without raising an error.
The text was updated successfully, but these errors were encountered:
Bug Report
Description
When attempting to pull data using the DVC python API (v3.55.2), the
os.mkdir(d)
function atdvc/fs/dvc.py:574
raises an error if the directory already exists. This results in an unnecessary error where the expected behavior would be to overwrite or skip the directory instead of failing.Reproduce
Steps to reproduce the bug:
local_path
already exists.Expected
When pulling data to a directory that already exists, DVC should either overwrite the existing directory or skip the directory creation step without raising an error.
Additional Information:
dvc/fs/dvc.py:574
when usingos.mkdir(d)
to create a directory.The text was updated successfully, but these errors were encountered: