title: Check if a directory exists with LotusScript
body: <p>This seems like the most basic of things.  There are lots of examples on google, all of which I have put into my code and have gotten the same result.</p>
  
  <p>I beleive I am missing something specific to the language, and it's really getting irritating.</p>
  
  <p>Given</p>
  
  <pre><code>pathName$ = "..\..\images\" + artID + "\" + artNum + "\"
      dirTest$ = "..\..\images\" + artID + "\"
      If Dir$(pathName$ , ATTR_DIRECTORY) = "" Then
          MsgBox "No Dir"
      Else
          MsgBox "Dir Found!"
      End If
  </code></pre>
  
  <p>(everthing is dimmed correctly)</p>
  
  <p>I have put msgbox's before pathName$ and right before the DIR call, but it fails when it gets to the test.  I know for a fact that the dir doesn't exist in certain scenarios, but I would like to trap the error, not have the script crash on failing to find the dir.</p>
  
  <p>I have tried <code>DIR (path,16) DIR$(path,16) DIR (path$,16) DIR$(path$,16)</code> as well as the ATTR_DIRECTORY key word.</p>
  
  <p>How can I gracefully check the existence of a directory in Lotusscript?</p>