getRootFolderFromState = rootState => {
  const openedFolder = rootState.project.projectTree
  if (openedFolder) {
    return openedFolder.pathname
  }
  return ''
}
Return the opened root folder or an empty string.

@param {*} rootState The root state.