# OSError: \[Errno 17\] File exists: '/home/travis/.fireball.keys'

**URL:** <https://forum.ansible.com/t/oserror-errno-17-file-exists-home-travis-fireball-keys/14151>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [December 13, 2013, 3:21pm UTC](https://forum.ansible.com/t/oserror-errno-17-file-exists-home-travis-fireball-keys/14151 "2013-12-13T15:21:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tannerjc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/tannerjc/32/985_2.png) [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Post date:** [December 13, 2013, 3:21pm UTC](https://forum.ansible.com/t/oserror-errno-17-file-exists-home-travis-fireball-keys/14151/1 "2013-12-13T15:21:10Z")

</div>

This is the codeblock where the directory is created ...

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;key\_path = os.path.expanduser("~/.fireball.keys")  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if not os.path.exists(key\_path):  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;os.makedirs(key\_path)

Once the traceback occurs, does the directory actually exist?
