title: Using pysmbc to read files over samba
body: <p>I am using the python-smbc library on Ubuntu to access a samba share. I can access the directory structure fine, I am however not sure how to access actual files and their content. The webpage (<a href="https://fedorahosted.org/pysmbc/" rel="noreferrer">https://fedorahosted.org/pysmbc/</a>) doesn't mention any thing, the code is in C/C++, with little documentation, so I am not quite sure how to use it.</p>
  
  <p>What I know is that Context.open (for files) takes uri, flags and mode, but what flags and mode are, I don't know.</p>
  
  <p>Has anyone used this library, or have examples off how to read files using it?</p>
  
  <p>The ideal situation had of course been to use smbfs mounts, but when I mount the same share using smbmount, all folders are empty. Though I can browse it with smbclient fine using the same credentials.</p>