title: How to mount S3 bucket as local FileSystem?
body: <p>I have a python app running on a <code>Jupiter-notebook</code> on AWS. I loaded a <code>C-library</code> into my python code which expects a path to a file. 
  I would like to access this file from the S3 bucket.</p>
  
  <p>I tried to use s3fs:</p>
  
  <pre><code>s3 = s3fs.S3FileSystem(anon=False)
  </code></pre>
  
  <p>using <code>s3.ls('..')</code> lists all my bucket files... this is ok so far. But, the library I am using should actually use the s3 variable inside where I have no access. I can only pass the path to the c library.</p>
  
  <p>Is there a way to mount the s3 bucket in a way, where I don't have to call 
  <code>s3.open()</code>, and can just call <code>open(/path/to/s3)</code> were somewhere hidden the s3 bucket is really mounted as a local filesystem?</p>
  
  <p>I think it should work like this without using s3. Because I can't change the library I am using internally to use the s3 variable... </p>
  
  <pre><code>with s3.open("path/to/s3/file",'w') as f:
        df.to_csv(f)
  
  with open("path/to/s3/file",'w') as f:
        df.to_csv(f)
  </code></pre>
  
  <p>Or am I doing it completely wrong?</p>
  
  <p>The c library iam using is loaded as DLL in python and i call a function :</p>
  
  <pre><code>lib.OpenFile(path/to/s3/file)
  </code></pre>
  
  <p>I have to pass the path to <code>s3</code> into the library OpenFile function.</p>