title: How to find the whole hierarchy of parent folders for a Google Drive file?
body: <p>I can use the Google Drive API to do this:</p>
  
  <pre><code>drive.files.get(
    {
      fields: "parents",
      fileId: "######"
    },
    (err, results) =&gt; {
      ...
    }
  );
  </code></pre>
  
  <p>However, I can only get the ID of the folder, one level up from the file.</p>
  
  <p>How can I get the whole hierarchy of parent folders that contain the Google Drive file, the folder that contains the folder, the folder that contains that folder, and so on?</p>