title: how to write file to parent folder with fs of nodejs?
body: <p>I want to write a file to the current script folder's parent folder (and sometimes subdirectories to that parent folder)?</p>
  
  <p>How should I write the path?</p>
  
  <p>Can this work?</p>
  
  <pre><code>fs.writeFile(__dirname + '../sibling_dir/file.txt', 'test');
  </code></pre>