title: accessing "Shared with me" with Colab
body: <p>I want to get access to the files in the Google Drive's "Shared with me" directory.</p>
  
  <p>In the Colab python notebook the following commands:</p>
  
  <pre><code>import os
  from google.colab import drive
  drive.mount('/content/drive')
  !ls "/content/drive/My Drive"
  </code></pre>
  
  <p>work well for "My Drive" directory however</p>
  
  <pre><code>!ls "/content/drive/My Drive"
  </code></pre>
  
  <p>fails with</p>
  
  <blockquote>
    <p>FileNotFoundError: [Errno 2] No such file or directory:</p>
  </blockquote>
  
  <p>I am aware of the fact that I can add the folder to my drive manually and proceed (<a href="https://stackoverflow.com/a/53887376/7769163">as mentioned in here</a>), but I would like to have direct access to the shared folders for lets say I might need to automate the work with files that are shared with me real time.</p>
  
  <p>I am also aware that same/similar problem exist with other cloud platforms like "OneDrive".</p>
  
  <p>The questions are:</p>
  
  <ol>
  <li>if there is no straightforward way of doing it, is there at least a
  workaround?</li>
  <li>do the people I share my code with get access to my drive too?</li>
  </ol>