# Local DICOM folder query

**URL:** <https://discourse.slicer.org/t/local-dicom-folder-query/28840>\
**Category:** Support\
**Created:** [April 11, 2023, 1:55pm UTC](https://discourse.slicer.org/t/local-dicom-folder-query/28840 "2023-04-11T13:55:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![docmaniac](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@docmaniac](https://discourse.slicer.org/u/docmaniac)\
**Post date:** [April 11, 2023, 1:55pm UTC](https://discourse.slicer.org/t/local-dicom-folder-query/28840/1 "2023-04-11T13:55:19Z")

</div>

Hi there! Can you tell me if it’s possible to set up the slicer to automatically check a folder for new DICOM files and add them to its database? And, do you know if there are any plugins that can help with this?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [April 11, 2023, 2:03pm UTC](https://discourse.slicer.org/t/local-dicom-folder-query/28840/2 "2023-04-11T14:03:23Z")

</div>

If you start the Slicer dicom listener in the dicom module it can receive DIMSE CSTORE from other dicom networking equipment and they will show up in the database directly. But if the files are coming another way you can use the `QFileSystemWatcher` to read files as they appear. Beware that you don’t want to start importing until the file is fully written, and that may be difficult to know for sure.

[https://doc.qt.io/qt-5/qfilesystemwatcher.html](https://doc.qt.io/qt-5/qfilesystemwatcher.html)
