# Action to check is a directory is writeable

**URL:** https://www.finalbuilder.com/forums/t/action-to-check-is-a-directory-is-writeable/4402
**Category:** Discussion
**Created:** [October 28, 2009, 2:43am UTC](https://www.finalbuilder.com/forums/t/action-to-check-is-a-directory-is-writeable/4402 "2009-10-28T02:43:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jmagda](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/9e8a1a/32.png) [@jmagda](https://www.finalbuilder.com/forums/u/jmagda)
#### Post date: [October 28, 2009, 2:43am UTC](https://www.finalbuilder.com/forums/t/action-to-check-is-a-directory-is-writeable/4402/1 "2009-10-28T02:43:03Z")

</div>

I am looking for a action or way to determine if a directory is able to be written to?

I know how to check to see if it exists but need to also see if it has write premissions? thanks for any help?

&nbsp;

Jeff

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 1, 2009, 10:32am UTC](https://www.finalbuilder.com/forums/t/action-to-check-is-a-directory-is-writeable/4402/2 "2009-11-01T10:32:08Z")

</div>

Hi Jeff   
  
 We don’t have an action built in, however it would be trivial to to add one yourself using Action Studio, or you could just add this function to your project global script and call it from a run script action :   
  
 `Function IsPathWriteable(Path)’ As Boolean Dim fso 'As Scripting.FileSystemObject Dim Temp_Path 'As String Set fso = CreateObject(“Scripting.FileSystemObject”) Temp_Path = Path & “” & fso.GetTempName() & “.tmp” On Error Resume Next fso.CreateTextFile Temp_Path IsPathWriteable = Err.Number = 0 fso.DeleteFile Temp_Path On Error Goto 0End Function`
