title: current folder name in google script, google drive? How?
body: <p>Is it possible to get a current folder name when I make a new Doc file? My script shows for me all the folders recursively from the root, but not the current one:</p>
  
  <p>In a <a href="https://developers.google.com/apps-script/reference/drive/drive-app#getFileById(String)" rel="nofollow noreferrer">Google Drive Api</a> I can't find info about current folder :( Please help me.</p>
  
  <pre><code>// Log the name of every folder in the user's Drive.
  var folders = DriveApp.getFolders();
  while (folders.hasNext()) {
  var folder = folders.next();
  //Logger.log(folder.getName());
  DocumentApp.getUi().alert(folder.getName());
  }
  </code></pre>