# How to create an empty fileTree?

**URL:** <https://discuss.gradle.org/t/how-to-create-an-empty-filetree/7113>\
**Category:** Old Forum Archive\
**Created:** [March 7, 2014, 12:37pm UTC](https://discuss.gradle.org/t/how-to-create-an-empty-filetree/7113 "2014-03-07T12:37:00Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Horcrux7](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/horcrux7/32/96_2.png) [@Horcrux7](https://discuss.gradle.org/u/Horcrux7)\
**Post date:** [March 11, 2014, 10:31am UTC](https://discuss.gradle.org/t/how-to-create-an-empty-filetree/7113/8 "2014-03-11T10:31:00Z")

</div>

Ok, I have find a solution that does not produce any warnings.

```gradle
ext.source = fileTree( 'directory does not exists' )

```

But it is very ugly.

---

_[View the full topic](https://discuss.gradle.org/t/how-to-create-an-empty-filetree/7113)._
