title: Google colab and google drive: Copy file from colab to Google Drive
body: <p>There seem to be lots of ways to access a file on Google Drive from Colab but no simple way to save a file from Google Colab back to Google Drive.</p>
  
  <p>For example, to access a Google Drive file from Colab, you can mount the Google Drive using</p>
  
  <pre><code>from google.colab import drive
  drive.mount('/content/drive')
  </code></pre>
  
  <p>However, to save an output file you've generated in Colab on Google Drive the methods seem very complicated as in:</p>
  
  <p><a href="https://stackoverflow.com/questions/50647677/upload-file-from-colab-to-google-drive-folder">Upload File From Colab to Google Drive Folder</a></p>
  
  <p>Once Google Drive is mounted, you can even view the drive files in the Table of Contents from Colab. Is there no simple way to save or copy a file created in Colab and visible in the Colab directory back to Google Drive?</p>
  
  <p>Note: I don't want to save it to a local machine using something like </p>
  
  <pre><code>from google.colab import files
  files.download('example.txt')
  </code></pre>
  
  <p>as the file is very large</p>