Dvc: glob* operators for move

Created on 19 Aug 2020  路  3Comments  路  Source: iterative/dvc

Some commands like add work with glob operators, but it would be really nice if move worked.

$ dvc move old/*.wav new/

Right now it broadcasts the operators into move and gets confused. dvc v1.5.0.

My janky workaround: $ for f in old/*.wav; do dvc move $f new/;done

feature request good first issue help wanted p3-nice-to-have

Most helpful comment

I will do this issue :)

All 3 comments

Discord context: https://discordapp.com/channels/485586884165107732/485596304961962003/745414867015565312

Just for the record, this is not really about dvc handling the glob, but rather accepting multiple sources (your shell will evaluate the glob and pass the list of files).

The implementation would require adjusting CLI in https://github.com/iterative/dvc/blob/master/dvc/command/move.py to accept multiple sources and pass them to API. And adjusting the API in https://github.com/iterative/dvc/blob/master/dvc/repo/move.py to handle that list of sources.

I will do this issue :)

Closing in favor of #4816

Was this page helpful?
0 / 5 - 0 ratings