# Isfile returns false on symlink (Windows)

**URL:** <https://discourse.julialang.org/t/isfile-returns-false-on-symlink-windows/85654>\
**Category:** General Usage\
**Created:** [August 12, 2022, 6:58am UTC](https://discourse.julialang.org/t/isfile-returns-false-on-symlink-windows/85654 "2022-08-12T06:58:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Post date:** [August 12, 2022, 6:58am UTC](https://discourse.julialang.org/t/isfile-returns-false-on-symlink-windows/85654/1 "2022-08-12T06:58:11Z")

</div>

See title. Is this expected?  
I am on Windows 10

If there is already a symlink and I want to overwrite it, `symlink` errors.  
But `isfile` returns false on the symlink.  
Is there any way I can determine if it exists?

---

<div class="post-metadata">

**Author:** ![ikirill](https://avatars.discourse-cdn.com/v4/letter/i/43a26b/32.png) [@ikirill](https://discourse.julialang.org/u/ikirill)\
**Post date:** [August 12, 2022, 7:34am UTC](https://discourse.julialang.org/t/isfile-returns-false-on-symlink-windows/85654/2 "2022-08-12T07:34:10Z")

</div>

You’re probably looking for `ispath`, with the distinction being that path specifies anything at its location, but a file specifies a “regular” file.
