# Feature Idea: Allow for "directory" or "link" in place of "file" with state

**URL:** <https://forum.ansible.com/t/feature-idea-allow-for-directory-or-link-in-place-of-file-with-state/21510>\
**Category:** Ansible Developer\
**Created:** [May 20, 2016, 11:16pm UTC](https://forum.ansible.com/t/feature-idea-allow-for-directory-or-link-in-place-of-file-with-state/21510 "2016-05-20T23:16:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergio\_Pace](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@Sergio\_Pace](https://forum.ansible.com/u/Sergio_Pace)\
**Post date:** [May 20, 2016, 11:16pm UTC](https://forum.ansible.com/t/feature-idea-allow-for-directory-or-link-in-place-of-file-with-state/21510/1 "2016-05-20T23:16:40Z")

</div>

As per [https://github.com/ansible/ansible-modules-core/issues/3669](https://github.com/ansible/ansible-modules-core/issues/3669), I believe that It would be a good adition to the file core module if we could use

dir: path=x/y/z

or

link: path=x/y/z

as an alias for

file: path=x/y/z state=directory

I would be glad to submit a pr if there is interest

Comments?
