# Watch Node on Deep Directory Tree Slow to Deploy

**URL:** <https://discourse.nodered.org/t/watch-node-on-deep-directory-tree-slow-to-deploy/40771>\
**Category:** General\
**Created:** [10 February 2021 18:23 UTC](https://discourse.nodered.org/t/watch-node-on-deep-directory-tree-slow-to-deploy/40771 "2021-02-10T18:23:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mored](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mored](https://discourse.nodered.org/u/mored)\
**Post date:** [10 February 2021 18:23 UTC](https://discourse.nodered.org/t/watch-node-on-deep-directory-tree-slow-to-deploy/40771/1 "2021-02-10T18:23:09Z")

</div>

When there is just a single level, even with lots (+17,000 files), the watch node works surprisingly well but as soon as I add subdirectories and turn on "Watch sub-directories recursively", deploying then takes minutes for any change in the flows. Any alternative nodes or methodology would be appreciated. The files are on a network drive if that makes any difference.

Windows 10  
Node-red v1.2.6

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [11 February 2021 02:31 UTC](https://discourse.nodered.org/t/watch-node-on-deep-directory-tree-slow-to-deploy/40771/2 "2021-02-11T02:31:21Z")

</div>

Have you tried it with sub folders but just with a few files to see if it is the sub folders or number of files causing the issue?

---

<div class="post-metadata">

**Author:** ![mored](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mored](https://discourse.nodered.org/u/mored)\
**Post date:** [12 February 2021 08:23 UTC](https://discourse.nodered.org/t/watch-node-on-deep-directory-tree-slow-to-deploy/40771/3 "2021-02-12T08:23:55Z")

</div>

I tried just creating sub folders (21 levels) and was quick. Did a check and one of the locations has 30,000 files and 35,000 folders. Annoyingly I'm only interested in a small subset of files that have a naming convention in the folder. May try getting my hands dirty and creating a version with inclusion rules but not sure if that will make it any better, maybe the sheer numbers is the issue.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [12 February 2021 08:51 UTC](https://discourse.nodered.org/t/watch-node-on-deep-directory-tree-slow-to-deploy/40771/4 "2021-02-12T08:51:29Z")

</div>

Sorry I thought this was a run time issue not a deploy issue. What option for deploying are you using? Is it `Full`? If so, try using `Modified Flows` instead  
 ![Screen Shot 2021-02-12 at 4.34.20 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/0/4085e7e6750e7ef4ab7b1fdc7785f1be00ba3aa9.png)

---

<div class="post-metadata">

**Author:** ![mored](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mored](https://discourse.nodered.org/u/mored)\
**Post date:** [12 February 2021 13:34 UTC](https://discourse.nodered.org/t/watch-node-on-deep-directory-tree-slow-to-deploy/40771/5 "2021-02-12T13:34:10Z")

</div>

I always use the modified nodes deploy, is modified flows better?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [13 February 2021 00:55 UTC](https://discourse.nodered.org/t/watch-node-on-deep-directory-tree-slow-to-deploy/40771/6 "2021-02-13T00:55:59Z")

</div>

Hmmm, I'm on a MAC and when I select the 'subdirectories' option I run into an error about a missing file that is a link. I'll dig into this tomorrow.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 April 2021 00:56 UTC](https://discourse.nodered.org/t/watch-node-on-deep-directory-tree-slow-to-deploy/40771/7 "2021-04-14T00:56:01Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
