# File / Directory \[not\] exits condition?

**URL:** <https://forum.ansible.com/t/file-directory-not-exits-condition/12589>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [March 26, 2013, 10:47pm UTC](https://forum.ansible.com/t/file-directory-not-exits-condition/12589 "2013-03-26T22:47:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [March 26, 2013, 10:47pm UTC](https://forum.ansible.com/t/file-directory-not-exits-condition/12589/1 "2013-03-26T22:47:22Z")

</div>

I've suggested previously on list that if someone wants to make the  
creates= and removes= functionality generic through use of  
AnsibleModuleCommon code, I'll support that.

Until then, you should use a "register" statement with the shell  
module and then use a conditional.
