# File\[\] files = listFiles(path+filepath); takes longer on windows than linux

**URL:** <https://discourse.processing.org/t/file-files-listfiles-path-filepath-takes-longer-on-windows-than-linux/42281>\
**Category:** Processing\
**Created:** [June 23, 2023, 11:13pm UTC](https://discourse.processing.org/t/file-files-listfiles-path-filepath-takes-longer-on-windows-than-linux/42281 "2023-06-23T23:13:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuhuhwy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/nuhuhwy/32/18485_2.png) [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Post date:** [June 23, 2023, 11:13pm UTC](https://discourse.processing.org/t/file-files-listfiles-path-filepath-takes-longer-on-windows-than-linux/42281/1 "2023-06-23T23:13:55Z")

</div>

Im tryna get a list off all items in a folder, to make a minecraft texture pack file viewer because i wanted to.  
i noticed on linux it runs smooth but on windows its very slow…

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [June 24, 2023, 7:25am UTC](https://discourse.processing.org/t/file-files-listfiles-path-filepath-takes-longer-on-windows-than-linux/42281/2 "2023-06-24T07:25:20Z")

</div>

Hi @nuhuhwy,

Hmmm! Hard to say… What does very slow mean ?  
Actually, it shouldn’t be much difference with comparable hardware setup !?  
Do you maybe have some processes (ie. Anti Virus Software, etc) which hooks into file access in windows !?

Cheers  
— mnse

---

<div class="post-metadata">

**Author:** ![nuhuhwy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/nuhuhwy/32/18485_2.png) [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Post date:** [June 24, 2023, 2:54pm UTC](https://discourse.processing.org/t/file-files-listfiles-path-filepath-takes-longer-on-windows-than-linux/42281/3 "2023-06-24T14:54:29Z")

</div>

i dont actually know. its a fresh installation of windows
