# check for new file in directory

**URL:** <https://forum.knime.com/t/check-for-new-file-in-directory/32328>\
**Category:** KNIME Analytics Platform\
**Created:** [April 18, 2021, 3:07pm UTC](https://forum.knime.com/t/check-for-new-file-in-directory/32328 "2021-04-18T15:07:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [April 18, 2021, 3:12pm UTC](https://forum.knime.com/t/check-for-new-file-in-directory/32328/2 "2021-04-18T15:12:03Z")

</div>

There was a debate about a similar task and I built a workflow to suggest how this could work. For more advanced scenarios you might want to check out the [KNIME server](https://forum.knime.com/t/start-a-workflow-e-g-a-database-query-after-a-certain-time/30287/53).

> [@Start a Workflow, e. g. a database query, after a certain time](https://forum.knime.com/t/start-a-workflow-e-g-a-database-query-after-a-certain-time/30287/36):
>
> @USCHUKN1ME I tried to build a system you might be able to expand and use. The idea is to have a workflow that would iterate a number of times (v\_number\_of\_intervals) with a set interval (of seconds) between (v\_seconds\_interval) them. The workflow looks for a trigger\_file.csv if this file has changed from the last time the loop has run a component would be executed. If the file has not changed nothing would happen. Admittedly not the most elegant way but you could build a small automatic execu…

---

_[View the full topic](https://forum.knime.com/t/check-for-new-file-in-directory/32328)._
