# Whole directory as input or output

**URL:** <https://discuss.dvc.org/t/whole-directory-as-input-or-output/232>\
**Category:** Questions\
**Created:** [September 26, 2019, 10:46am UTC](https://discuss.dvc.org/t/whole-directory-as-input-or-output/232 "2019-09-26T10:46:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tania](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tania](https://discuss.dvc.org/u/tania)\
**Post date:** [September 26, 2019, 12:14pm UTC](https://discuss.dvc.org/t/whole-directory-as-input-or-output/232/3 "2019-09-26T12:14:32Z")

</div>

Hi @kupruser,

The following is an example of what I did.

1. create train\_split.dvc with train\_split directory as output

> dvc run -f train\_split.dvc -d src/config/train\_split.json -d data/raw/train.csv.zip -o data/processed/train\_split python src/data/train\_split.py

1. create build\_features\_target\_enc with train\_split directory as input

> dvc run -f build\_features\_target\_enc.dvc -d src/config/build\_features\_target\_enc\_smooth.json -d data/processed/train\_split -d data/raw/test.csv.zip -o data/processed/target\_enc\_train\_features.csv.gz -o data/processed/target\_enc\_test\_features.csv.gz python src/features/build\_features\_target\_enc\_smooth.py

1. After doing some other work the files inside the train\_split directory had changed. I tried to rerun the pipeline expecting it to pick up on those changes and run itself from the build\_features\_target\_enc step.

> dvc repro build\_features\_target\_enc.dvc

but it said that there were no changes.

---

_[View the full topic](https://discuss.dvc.org/t/whole-directory-as-input-or-output/232)._
