Skip to content

dvc move fails to move datafile to a directory, when the tracking file has a different name than data file #2477

@dashohoxha

Description

@dashohoxha

I was playing with dvc move and I got this problem.

Script to reproduce it:

#!/bin/bash -x

rm -rf test1
mkdir test1
cd test1/

echo 'test 1' > file1.txt
dvc init --no-scm
dvc add file1.txt
mv file1.txt.dvc file1.dvc
dvc status
tree -a

mkdir dir1
dvc move file1.txt dir1
dvc status
tree -a
# file1.txt has not been moved to dir1/

I am not sure if this is a glitch or everything is as expected, since the .dvc file has a different name from the datafile. When tracking file and data file have the same name everything works fine.

Metadata

Metadata

Assignees

Labels

bugDid we break something?

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions