# File writing with the file node

**URL:** <https://discourse.nodered.org/t/file-writing-with-the-file-node/1585>\
**Category:** General\
**Created:** [15 July 2018 12:02 UTC](https://discourse.nodered.org/t/file-writing-with-the-file-node/1585 "2018-07-15T12:02:39Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 July 2018 20:27 UTC](https://discourse.nodered.org/t/file-writing-with-the-file-node/1585/8 "2018-07-16T20:27:19Z")

</div>

> [@TotallyInformation](#):
>
> If I remember rightly, NR sets the current folder to your userDir folder, usually `/home/pi/.node-red`

Actually it sets it to `/home/pi`. That is done in the systemd service `/lib/systemd/system/nodered.service`. If the user that ran the update script is not `pi` then it is set to that users home directory.

---

_[View the full topic](https://discourse.nodered.org/t/file-writing-with-the-file-node/1585)._
