title: Capture arbitrary path in Flask route
body: <p>I have a simple Flask route that I want to capture a path to a file.  If I use <code>&lt;path&gt;</code> in the rule, it works for <code>/get_dir/one</code> but not <code>/get_dir/one/two</code>.  How can I capture an arbitrary path, so that <code>path='/one/two/etc</code> will be passed to the view function?</p>
  
  <pre><code>@app.route('/get_dir/&lt;path&gt;')
  def get_dir(path):
      return path
  </code></pre>