title: How to set the working directory for a Fabric task?
body: <p>Assuming I define a trivial task to list files on a remote server:</p>
  
  <pre><code>from fabric.api import run, env
  
  env.use_ssh_config = True
  
  def list_files():
      run('ls')
  </code></pre>
  
  <p>And I execute it with:</p>
  
  <pre><code>fab -H server list_files
  </code></pre>
  
  <p>How can I specify the working directory for the command I'm running, other than doing:</p>
  
  <pre><code>run('cd /tmp &amp;&amp; ls')
  </code></pre>
  
  <p>Which doesn't look very idiomatic to me?</p>
  
  <p><em>Disclaimer: I'm looking at Fabric for the first time in my life and I'm totally new to Python.</em></p>