Skip to content
TheChatArchiveThe Chat Archive
o4-mini-2025-04-16· OpenAIHugging Face LMArena Human Preference 140K

Which directory can I write in an application in AWS AppStream 2?

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-opus-4-20250514’s answer.
  1. User

    Which directory can I write in an application in AWS AppStream 2?

  2. Assistant

    In AppStream 2.0 you don’t get write-access to Program Files or the Windows root – all of your application writes must go into “user‐writable” locations. By default you can write to:

    1. The user’s profile folder (persistent if you enable Home folders)
      • %USERPROFILE%
      • e.g. C:\Users<STACK_USERNAME>\Documents
      • e.g. C:\Users<STACK_USERNAME>\AppData\Local\Temp

    2. The local ephemeral scratch volume (D:\ drive)
      • D:\ is fully writable during the session but is not persisted across instance rebuilds.

    3. Any network‐mounted file share you configure for persistence
      • e.g. map an FSx or EFS share to, say, H:\

    Here’s a quick comparison:

    LocationPath ExamplesEphemeral?Persistent?Use Case
    User profile / DocumentsC:\Users<User>\DocumentsNo*Yes, if Home folder enabledSaving user files/settings
    User temp folderC:\Users<User>\AppData\Local\TempYes (session)NoScratch/temp files
    Local scratch volumeD:\Yes (session)NoLarge temp data
    Network-mounted file shareH:\ (or whatever drive you map)DependsYes (FSx/EFS/SMB)Long‐term storage between sessions

    * Writes under your user profile only persist if you’ve turned on AppStream Home Folders (backed by FSx/EFS or an SMB share). Anything you write outside of a mapped share or the Home folder will vanish once the instance is stopped or rebuilt.

    —
    Recommendation
    If you need true persistence:

    1. Configure a Home Folder when you create your stack (point it at an FSx for Windows File Server or EFS-backed SMB share).
    2. Have your app write all user data to %USERPROFILE% or a subfolder there.

    If you only need scratch space during the session, write to D:\ or %TEMP%.

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