# How can AI access a local folder?

> Cube Agent 2.4.1 Release (Build 2004105) User Guide.
> Category: Home & Content. Content baseline: 2026-12-05.
> Web page: https://cubeagent.app/en/docs/folder_mounts/

## Adding a folder (Pro)

Search for **Folder Mounts** in Settings, tap **Add folder**, pick a directory via the system folder picker, and configure its display name and **Read-only** or **Read-write** permission. This relies on device and system folder-picker support; if your device reports it as unsupported, you can still share individual files via chat attachments.

## Using it in chats

In a standard chat, tap **Mounted folders** on the toolbar (or **+ → Folder** in the input bar) and enable the directories you want for this conversation. If **File operations** is not enabled yet, turning on a folder enables it automatically with a brief prompt; disabling all folders does not turn off File operations. Tap **Manage mounted folders** to add or configure directories, or tap **Mounted folders** on the toolbar to toggle each directory on or off. When no folders are mounted, the folder entry is hidden from both the toolbar and the attachment menu.

Simply adding a mount does not automatically expose it to chats. If you use a folder frequently, enable **Enable for new chats** in Folder Mounts management so future new chats automatically select that folder and enable File operations (existing chats are unaffected). You can also go to **Assistant settings → Tools → Mounted folders** to disable folder access for a specific assistant or set separate new-chat defaults for that assistant—when left unset, it inherits your Folder Mounts defaults, while an empty custom selection means no folders are auto-enabled. Default folder selections are stored locally only and do not transfer when sharing an assistant to other devices. Access always obeys each folder's read/write scope and tool approval rules, and can be toggled off per chat.

AI can access only folders enabled for the current chat with valid system authorization. PDF, Office, and other supported documents can be parsed on demand via File operations, and when image reading is enabled, AI can view images inside selected folders directly—no need to copy files to the workspace first, and read-only permission is sufficient for all reading capabilities. Video frame extraction and video understanding are not supported.

## Creating subfolders and saving documents

Under **Settings → Folder Mounts → Browse files**, tap folders to navigate deeper and tap the path bar at the top to move up. Tap any Markdown file (`.md` / `.markdown` / `.mdx`) to preview or edit it directly. In read-write mode, you can create **New Markdown document** and **New folder** right inside the current directory (supported across local mounts as well as WebDAV and SMB remote mounts).

In chat, you can say something like: *"Save the summary above to the `HarmonyOS Dev/Knowledge Notes` subfolder under `Study Materials` as `folder-access.md`."* AI will request write approval according to your File operations permission and automatically create any missing intermediate folders. Markdown and TXT files can be written directly, and generated Word, PDF, or other files can be copied into the target subfolder. Read-only folders do not allow creating, writing, or deleting.

## Delete originals vs. Remove mount

- **Delete originals…**: Triggered from the right-hand menu of a file or folder. You review the path and exact file/folder count before confirming permanent deletion—deleted items bypass the recycle bin. AI-initiated deletions also require separate confirmation every single time; "Always allow" never skips deletion approval. If directory contents change before confirmation, you must re-verify. A mount's root folder cannot be deleted.
- **Remove mount**: Only revokes Cube Agent's access and never deletes local files.

Currently supported operations include listing, reading, copying, writing, text editing, creating, lossless cross-folder moving within the same mount (without overwriting existing same-name files; copy first across different mounts), and deleting. If a write or delete fails mid-way, partial changes may have occurred—check the actual directory state and any recovery copy notices.

## If authorization fails

Folder selection depends on system capabilities. If you see **"The system could not save folder authorization"**, it means the system's persistent permission check did not pass (it does not necessarily mean you chose a restricted system folder). Try selecting a regular folder you created yourself; if it still fails, send feedback with your device model, OS version, and whether you are using an emulator.

## Management and migration

Deselect a folder inside a chat to stop access for that chat immediately. In Folder Mounts management, you can switch between read-only and read-write, re-authorize, or remove a mount without deleting original files. If authorization expires, select the folder again to renew it. Local folder mounts do not migrate through backups, Cloud Sync, or Nearby Transfer—re-authorize them on a new device. For NAS, Jianguoyun, and other network storage, see **How do I bring a NAS or cloud drive into chats?**.
