code: 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);
  }
docs: Get status of the file.
  @param {String} file Name of base file.
  @returns {Integer} SAFE_NORMAL, SAFE_AUTO_RECOVERABLE, SAFE_INTERVENE,
  INVALID_NAME, IS_NOT_A_FILE, or DOES_NOT_EXIST