Which directory can I write in an application in AWS AppStream 2?
- User
Which directory can I write in an application in AWS AppStream 2?
Assistant
In AWS AppStream 2.0, you have limited write access to specific directories during your streaming session. Here are the main directories where you can write:
Home Folder: This is the primary location for persistent storage. The path is typically:
- Windows:
C:\Users\PhotonUser\My Files\Home Folder - Linux:
/home/PhotonUser/MyFiles/HomeFolder
Files saved here persist between sessions if you have Home Folders enabled for your stack.
Temporary Folders: You can write to standard temporary directories:
- Windows:
%TEMP%orC:\Users\PhotonUser\AppData\Local\Temp - Linux:
/tmp
Note that files in temporary folders are deleted when the session ends.
Session-specific folders: During an active session, you typically have write access to:
- The user's Documents, Desktop, and Downloads folders
- Application-specific data folders in AppData (Windows) or hidden directories in the home folder (Linux)
Important limitations:
- You cannot write to system directories or Program Files
- Write access to the C:\ root (Windows) or / root (Linux) is restricted
- Any files saved outside the Home Folder will be lost when the session ends
If you need persistent storage, always use the Home Folder. For temporary work during a session, you can use any of the user-accessible directories, but remember to move important files to the Home Folder before ending your session.
- Windows:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.