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?
Jeff
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?
Jeff
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