# IsWriteable incorrect

**URL:** <https://forum.xojo.com/t/iswriteable-incorrect/29026>\
**Category:** Windows\
**Created:** [January 5, 2016, 7:34pm UTC](https://forum.xojo.com/t/iswriteable-incorrect/29026 "2016-01-05T19:34:02Z")\
**Posts on this page:** 1\
**Showing post:** 31

<div class="post-metadata">

**Author:** ![Jeff\_Tullin](https://forum.xojo.com/user_avatar/forum.xojo.com/jeff_tullin/32/693_2.png) [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Post date:** [June 6, 2019, 5:02am UTC](https://forum.xojo.com/t/iswriteable-incorrect/29026/31 "2019-06-06T05:02:39Z")

</div>

I echo Norm’s advice.

> [@](#):
>
> Best way to tell IF it is really writeable is just to try writing and test for the resulting error / exception

Try to create a file of the right name, wrapped inside a try…catch  
If you get an exception, handle that.  
I started doing that because of trouble I was having with PDF files held ‘open’ by Adobe, and CSV files held ‘open’ by Excel.

Similarly, I wrap DELETES in a try catch, and then test for f.exists afterwards too.

#trustnoone

---

_[View the full topic](https://forum.xojo.com/t/iswriteable-incorrect/29026)._
