Skip to content
The Chat Archive
Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written) OpenAssistant Conversations (oasst2)

Código en Python para localizar los últimos tres archivos utilizados en Windows e…

In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
  1. User

    Código en Python para localizar los últimos tres archivos utilizados en Windows e imprimir su ruta.

  2. Assistant

    import os from win32com.shell import shell, shellcon

    files = [] documents = os.path.join(shell.SHGetFolderPath(0, shellcon.CSIDL_PERSONAL), "Documents") for file in os.listdir(documents): full_path = os.path.join(documents, file) files.append((os.path.getctime(full_path), full_path))

    sorted_files = sorted(files, reverse=True)[:3]

    for ctime, path in sorted_files: print(f"File path: {path}")

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.

Código en Python para localizar los últimos tres archivos utilizados en Windows e… · The Chat Archive