is it possible to add a subfolder using dvc add
#6880
Replies: 2 comments 1 reply
-
If you don't want to make |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for your reply @karajan1001
Yup....but
Yes, They are different versions of the same data points. But I need these folders together on my local machine because I also have a folder called
This is a possible solution.
Which is what I'm looking for. But I was thinking if there is an easy alternative which does the same thing. I haven't really tried out Thanks a lot once again!! |
Beta Was this translation helpful? Give feedback.
-
I have a folder called
data
that is being tracked by dvc. There is also a correspondingdata.dvc
file in my repo.below is the structure
when the data folder is in the above state, it was properly added and pushed to AWS s3.
data.dvc
is also properly updated.I now have added two folders to it and this is the structure now
Problem:
Now I want to do
dvc add
separately for0.0.5
and0.0.6
instead of doingdvc add data
. when I dodvc add data/0.0.5
I get this errorI guess this is because there is only
data.dvc
folderReason
The reason I want to add the subfolders separately instead of adding the whole data folder (with
dvc add data
) is that if I dodvc add data
, thedata.dvc
will get updated with the hash corresponding to both the0.0.5
and0.0.6
folders. Then when I dodvc pull
, I will get both the0.0.5
and0.0.6
folders downloaded.But I just want to associate each data version folder with a unique data.dvc file. Currently, deleting all folders except one and then
doing dvc add data
seems to be the only way.Beta Was this translation helpful? Give feedback.
All reactions