title: How to properly setup docker-sync to exclude folders
body: <p>I am trying to setup docker-sync to exclude my app/cache and app/logs folder but it is not working.</p>
  
  <p>Things I've tried:</p>
  
  <p>Using sync_excludes: ['.idea', 'app/cache/<em>', 'app/logs/</em>'] but it will be translated to something like this</p>
  
  <pre><code> command  unison -ignore='Name .idea' -ignore='Name app/cache/*' 
   -ignore='Name app/logs/*'
  </code></pre>
  
  <p>So then I tried using sync_args and set like this:</p>
  
  <pre><code>sync_args:
    - "-debug verbose"
    - "-ignore='Path app/cache'"
    - "-ignore='Path app/logs'"
  
  command  unison -ignore='Name .idea' -ignore='Name systems' \
  -debug verbose -ignore='Path app/cache/*' -ignore='Path app/logs/*'
  </code></pre>
  
  <p>looking at the logs I can see this</p>
  
  <pre><code>[unox][DEBUG]: recvCmd: DIR
  [unox][DEBUG]: sendCmd: OK
  [fswatch+] &gt;&gt; OK
  [pred] immutable 'app/cache' = false
  [pred] ignore 'app/cache/prod' = true
  [pred] ignorenot 'app/cache/prod' = false
  [ignore] buildUpdateChildren: ignoring path app/cache/prod
  </code></pre>
  
  <p>But this still seeing the events being triggered and it is still syncing to my host machine.</p>
  
  <pre><code>[pred] ignore 'app/cache/prod/annotations/5702f47f407ddb07532bfd60d8ea2919489ef4bc#__construct.cache.php' = false
  [pred] ignore 'app/cache/prod/annotations/f21b469a2214195ff16e2af43f249bdbfa245c25#findPublishedOr404.cache.php' = false
  </code></pre>
  
  <p>Anyone know what I am missing?</p>
  
  <p>my last version look like this:</p>
  
  <pre><code>version: "2"
  
  options:
    # optional, activate this if you need to debug something, default is false
    # IMPORTANT: do not run stable with this, it creates a memory leak, turn off verbose when you are done testing
    verbose: true
  
  syncs:
    #IMPORTANT: ensure this name is unique
    dt-akeneo-unison-sync:
      notify_terminal: true
  
      # which folder to watch / sync from - you can use tilde (~), it will get expanded. Be aware that the trailing slash makes a difference
      # if you add them, only the inner parts of the folder gets synced, otherwise the parent folder will be synced as top-level folder
      src: './'
  
      # the files should be own by root in the target cointainer
      sync_userid: 1000
      sync_strategy: 'unison'
  
      # optional, a list of regular expressions to exclude from the fswatch - see fswatch docs for details
      watch_excludes: ['\.git', '\.gitignore', '.*\.md']
  
      sync_args:
        - "-debug verbose" #force Unison to choose the file with the later (earlier) modtime
        - "-ignore='Path app/cache'"
        - "-ignore='Path app/logs'"
        - "-ignore='Path .git'"
        - "-ignore='Path .git'"
        - "-ignore='Path vendor'"
        - "-ignore='Path upgrades'"
        - "-ignore='Path systems'"
  
      # optional: use this to switch to fswatch verbose mode
      watch_args: '-v'
  </code></pre>
  
  <p>My Env:
  {11:41}~ ➭ docker -v
  Docker version 17.09.0-ce, build afdb6d4</p>
  
  <p>{11:42}~ ➭ docker-sync -v
  0.4.6</p>
  
  <p>SO: OSx 10.11.6</p>
  
  <p>Running my projects on a mounted Filesystem Case-Sensitive created using <a href="https://gist.github.com/scottsb/479bebe8b4b86bf17e2d" rel="nofollow noreferrer">https://gist.github.com/scottsb/479bebe8b4b86bf17e2d</a>
  /dev/disk2s2 on /Users/neisantos/src (hfs, local, nodev, nosuid, journaled, noowners, nobrowse)</p>