async function createFolder (client, type, folderName) {
  // Always use the parent-file-item for right-click context menu
  await client.rightClick(`.session-current .file-list.${type} .parent-file-item`, 10, 10)

  await delay(500)
  await client.click('.ant-dropdown:not(.ant-dropdown-hidden) .ant-dropdown-menu-item:has-text("New Folder")')
  await delay(400)
  await client.setValue('.session-current .sftp-item input', folderName)
  await client.click('.session-current .sftp-title-wrap')
  await delay(3500) // Ensure folder creation completes
}
Creates a new folder in the specified type of file list (local/remote)
Always uses the parent-file-item which is guaranteed to be present

@param {Object} client - The Playwright client
@param {string} type - The type of file list ('local' or 'remote')
@param {string} folderName - The name of the folder to create