title: Get created file's path from SaveFileDialog in electron
body: <p>I am trying to store my created file's path after using SaveFileDialog, here is my code:</p>
  
  <pre><code>    let path;
      dialog.showSaveDialog((fileName) =&gt; {
          if (fileName === undefined){
              console.log("You didn't save the file");
              return;
          }
  
          fs.writeFile(fileName, text, (err) =&gt; {
              if(err){
                  alert("An error ocurred creating the file "+ err.message)
              }
              alert("The file has been succesfully saved");
          });
      }); 
  </code></pre>
  
  <p>What I want to happen is that after the user creates the file he would enter file's path in the variable path, is it even possible?</p>