docs: function safeGetState (fileName) {
      if ((fileName === undefined) || (fileName === null)) {
          return (cc.INVALID_NAME);
      }
      // if fileName exists, verify it is a file
      var info = getFileInfo (fileName);
      if ((info.exists) && (info.isFile === false)) {
          return (cc.IS_NOT_A_FILE);
      }
  
      var state = getState (fileName);
      return (state.status);
  }