title: isDir equivalent in cmd
body: <p>I'm using tshell to connect to a device and I need to check if a given path is a file or directory.  </p>
  
  <p>I was hoping to use the cmd-device function which runs cmd commands on the device, but there doesn't seem to be a cmd command to do this.</p>
  
  <p>Does someone have a way to check whether a given path is to a directory or to a file using the standard cmd functions?</p>