# Read file condition

**URL:** <https://forum.uipath.com/t/read-file-condition/414751>\
**Category:** Studio\
**Tags:** studio\
**Created:** [2022 年 4 月 13 日午前 5:37 UTC](https://forum.uipath.com/t/read-file-condition/414751 "2022-04-13T05:37:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nur\_Alif\_Irawan](https://avatars.discourse-cdn.com/v4/letter/n/e495f1/32.png) [@Nur\_Alif\_Irawan](https://forum.uipath.com/u/Nur_Alif_Irawan)\
**Post date:** [2022 年 4 月 13 日午前 5:37 UTC](https://forum.uipath.com/t/read-file-condition/414751/1 "2022-04-13T05:37:22Z")

</div>

hello this is my 2nd post

how to create an condition for file ?

ok, in my case is i want download a file ( probably small file .csv ) it came dynamic because i download it each day, so the end of file came with current date.  
and main problem is, the google chrome is close too quickly( probably closed before downloading file is started ).  
all i have to do is do check the file, if its already donwloaded then close the chrome, if not stay the chrome until the file is available.

my path folder on C:user\downloads\documents

---

<div class="post-metadata">

**Author:** ![ushu](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ushu/32/463480_2.png) [@ushu](https://forum.uipath.com/u/ushu)\
**Post date:** [2022 年 4 月 13 日午前 5:41 UTC](https://forum.uipath.com/t/read-file-condition/414751/2 "2022-04-13T05:41:04Z")

</div>

@Nur_Alif_Irawan You can use **wait for download activity**. Once the file downloads then you can close the chrome. Use below ref links

> **[Activities - Wait for Download](https://docs.uipath.com/activities/other/latest/workflow/get-last-downloaded-file)**
>
> The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...

> [@How does the "Wait for Download" activity work?](https://forum.uipath.com/t/how-does-the-wait-for-download-activity-work/264416):
>
> Hello! I have a master process that downloads many files as part of an audit process. That being said, I’m curious as to how the “Wait for Download” activity works. I see a Do activity that says “Activity to initiate download.” In my case, I’m assuming it would be something like “Click Save.” Then, there is a monitored folder, which would be a network/shared folder. No problem there. The question I have is regarding the Downloaded file section, which appears to require a variable–and a FileInfo …

---

<div class="post-metadata">

**Author:** ![athira.somasekharan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/athira.somasekharan/32/189171_2.png) [@athira.somasekharan](https://forum.uipath.com/u/athira.somasekharan)\
**Post date:** [2022 年 4 月 13 日午前 5:41 UTC](https://forum.uipath.com/t/read-file-condition/414751/3 "2022-04-13T05:41:24Z")

</div>

Hello,

You can use Wait for Download activity. See the documentation here:

[https://docs.uipath.com/activities/docs/get-last-downloaded-file](https://docs.uipath.com/activities/docs/get-last-downloaded-file)

Thanks!  
Athira

---

<div class="post-metadata">

**Author:** ![Nur\_Alif\_Irawan](https://avatars.discourse-cdn.com/v4/letter/n/e495f1/32.png) [@Nur\_Alif\_Irawan](https://forum.uipath.com/u/Nur_Alif_Irawan)\
**Post date:** [2022 年 4 月 13 日午前 7:29 UTC](https://forum.uipath.com/t/read-file-condition/414751/4 "2022-04-13T07:29:34Z")

</div>

thanks its work
