Files
dvc/tests/func
skshetry c223cdaecd params/metrics: do not fail during dir expansion (#10375)
params/metrics: assume file when dir expansion raises error

Closes https://github.com/iterative/dvc/issues/10018.

We have to be careful when expanding paths. This PR fall backs to assume it
as a file when either of `isdir` and `find` raises error due to some mishaps.
The consequence of this assumption happens when we try to read the file.
In that case, if the directory exists, and we happen to try to open it
as a file, dvc will raise `IsADirectoryError`, but that is handled correctly
and won't fail catastrophically like this did.
2024-03-28 07:30:12 +05:45
..
2024-03-11 09:47:05 -04:00
2023-06-18 18:58:30 +03:00
2023-09-28 21:54:06 +03:00
2023-12-12 23:56:19 +02:00
2023-12-15 08:02:40 +02:00
2023-11-09 20:58:58 +05:45
2022-01-19 12:22:07 +02:00