# How get hold file or repertory

**URL:** <https://forum.ansible.com/t/how-get-hold-file-or-repertory/31546>\
**Category:** Ansible Project\
**Created:** [October 25, 2019, 3:03pm UTC](https://forum.ansible.com/t/how-get-hold-file-or-repertory/31546 "2019-10-25T15:03:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karther](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@Karther](https://forum.ansible.com/u/Karther)\
**Post date:** [October 25, 2019, 3:03pm UTC](https://forum.ansible.com/t/how-get-hold-file-or-repertory/31546/1 "2019-10-25T15:03:31Z")

</div>

Hey,

I have one repertory **/home/ansible/my\_repertory** with this content :

drwxr-xr-x 3 ansible ansible 4096 Sep 11 10:25 db-component\_2019-09-11\_10h25\_00  
drwxr-xr-x 3 ansible ansible 4096 Sep 11 10:46 db-component\_2019-09-11\_10h46\_34  
drwxr-xr-x 3 ansible ansible 4096 Sep 11 10:47 db-component\_2019-09-11\_10h47\_17

I need an ansible spot that can recover the oldest folder in this repertory.

Someone have idea please community ansible ! 🙂

Regards,

Karther
