title: Check whether a path is accessible using the posix module
body: <p>How can I check if given path is accessible using the posix module in Python, what I mean by accessible, is that I can make changes to any file in this folder, so I have for example root permissions, also, I want to know which file I cannot access.</p>
  
  <p>I have looked in the <code>access</code> function, but I don't really understand it and how can I use it and how can it help me.</p>
  
  <pre class="lang-py prettyprint-override"><code>import posix
  
  result = posix.access('/home/user/Desktop', 1) # what does that number mean ?
  print(result) # True or False
  </code></pre>