# fetch does not support space in file name ?

**URL:** <https://forum.ansible.com/t/fetch-does-not-support-space-in-file-name/16376>\
**Category:** Ansible Project\
**Created:** [September 30, 2014, 2:23am UTC](https://forum.ansible.com/t/fetch-does-not-support-space-in-file-name/16376 "2014-09-30T02:23:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Yan](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@Paul\_Yan](https://forum.ansible.com/u/Paul_Yan)\
**Post date:** [September 30, 2014, 2:23am UTC](https://forum.ansible.com/t/fetch-does-not-support-space-in-file-name/16376/1 "2014-09-30T02:23:50Z")

</div>

Hi,

I just found fetch does not work very well with filenames has spaces in them. so I wrote a test script.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [October 1, 2014, 12:00pm UTC](https://forum.ansible.com/t/fetch-does-not-support-space-in-file-name/16376/2 "2014-10-01T12:00:48Z")

</div>

As an initial question, what is ansible --version ?

---

<div class="post-metadata">

**Author:** ![Devin\_Christensen](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@Devin\_Christensen](https://forum.ansible.com/u/Devin_Christensen)\
**Post date:** [December 16, 2014, 1:53am UTC](https://forum.ansible.com/t/fetch-does-not-support-space-in-file-name/16376/3 "2014-12-16T01:53:28Z")

</div>

Ran into this same issue today on the latest devel branch. When fetching a file with a space in the name and “fail\_on\_missing: true” I get the error: “the remote file does not exist”. Removing the space from the filename fixes it. Here’s what my task looks like:

- name: fetch result files

fetch:  
src: “file\_with space”  
dest: “/tmp/dest”  
flat: yes  
fail\_on\_missing: yes
