async function countFileListItems (client, type, selector) {
  const items = await client.locator(`.session-current .file-list.${type} ${selector}`)
  return await items.count()
}
Counts items in the file list

@param {Object} client - The Playwright client
@param {string} type - The type of file list ('local' or 'remote')
@param {string} selector - The CSS selector for the items (e.g., '.sftp-item' or '.parent-file-item')