# Add Recently Loaded Files

**URL:** <https://discourse.slicer.org/t/add-recently-loaded-files/18140>\
**Category:** Development\
**Tags:** dicom\
**Created:** [June 15, 2021, 10:38am UTC](https://discourse.slicer.org/t/add-recently-loaded-files/18140 "2021-06-15T10:38:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OpenSource\_Contri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/opensource_contri/32/11189_2.png) [@OpenSource\_Contri](https://discourse.slicer.org/u/OpenSource_Contri)\
**Post date:** [June 15, 2021, 10:38am UTC](https://discourse.slicer.org/t/add-recently-loaded-files/18140/1 "2021-06-15T10:38:12Z")

</div>

Hello,  
I’ve add these to .slicerrc.py to open the DICOM import popup-  
slicer.util.selectModule(‘DICOM’)  
slicer.util.getModuleGui(‘DICOM’).importFolder()

Now, I wanted to add “recently opened DICOM” in the pop up. What steps to be followed?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 17, 2021, 1:28am UTC](https://discourse.slicer.org/t/add-recently-loaded-files/18140/2 "2021-06-17T01:28:40Z")

</div>

By default, Slicer shows imported patients based on the import time, so you will always see the patient that you have just imported at the top of the list.
