# How to create a file directory and make verification of Excel file being downloaded for UI

**URL:** <https://forum.robotframework.org/t/how-to-create-a-file-directory-and-make-verification-of-excel-file-being-downloaded-for-ui/7013>\
**Category:** Robot Framework\
**Created:** [16 March 2024 22:14 UTC](https://forum.robotframework.org/t/how-to-create-a-file-directory-and-make-verification-of-excel-file-being-downloaded-for-ui/7013 "2024-03-16T22:14:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oscar\_1392](https://avatars.discourse-cdn.com/v4/letter/o/958977/32.png) [@Oscar\_1392](https://forum.robotframework.org/u/Oscar_1392)\
**Post date:** [16 March 2024 22:14 UTC](https://forum.robotframework.org/t/how-to-create-a-file-directory-and-make-verification-of-excel-file-being-downloaded-for-ui/7013/1 "2024-03-16T22:14:33Z")

</div>

Hello everyone! I’m very new here.

I’m using:

Library SeleniumLibrary  
Library OperatingSystem

I need to create a file directory and then by clicking on export Excel file I need to:

1. Place a file in specified file directory.
2. Make a verification that file was downloaded/exist by the latest file in the list of all downloaded files in folder.

Does anyone know how to make it in RF using these libraries?

---

<div class="post-metadata">

**Author:** ![CharlieScene](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/charliescene/32/3484_2.png) [@CharlieScene](https://forum.robotframework.org/u/CharlieScene)\
**Post date:** [16 March 2024 23:14 UTC](https://forum.robotframework.org/t/how-to-create-a-file-directory-and-make-verification-of-excel-file-being-downloaded-for-ui/7013/2 "2024-03-16T23:14:27Z")

</div>

Hello,

Easiest would be with following OperatingSystem keywords :

```
Create Directory path
Copy File sourcepath targetpath

```

About availability one of these :

```
File Should Exist path
Wait Until Created path
Should Exist path

```

About the “latest” file, it depends of infos you have, naming… You could use _List Files In Directory_ and _Get Modified Time_ keyword, or if the file is named with timestamp work on this too.

Regards

Charlie

---

<div class="post-metadata">

**Author:** ![Oscar\_1392](https://avatars.discourse-cdn.com/v4/letter/o/958977/32.png) [@Oscar\_1392](https://forum.robotframework.org/u/Oscar_1392)\
**Post date:** [17 March 2024 03:33 UTC](https://forum.robotframework.org/t/how-to-create-a-file-directory-and-make-verification-of-excel-file-being-downloaded-for-ui/7013/3 "2024-03-17T03:33:34Z")

</div>

Thank you for your advices!
