# Files

The Files panel moves files between your computer and the server of the active SSH tab. It runs over the tab's own SSH connection with SFTP.

Source: https://docs.valakes.com/files/

Last updated: 2026-11-28

The Files panel moves files between your computer and the server of the active SSH tab. It runs over the tab's own SSH connection with SFTP. There is no second login, no `scp` and no shell command behind it.

## The two panes

Press **Files** in the status bar or `Ctrl+Shift+E` (`Cmd+Shift+E` on macOS). The panel opens next to the terminal with your computer on the left and the server on the right. Each tab keeps its own folders. When the panel is narrower than 640 px it shows a **Local | Server** switch instead, and in a narrow window it becomes an overlay with a Close button.

The server pane opens in the terminal's directory. You can sort by name, size or date, filter by typing, show hidden files, make a folder, rename and change permissions in **Properties** (not for a link). A text file can be viewed read-only up to 1 MiB. Owner and group are shown as numbers. A listing stops at 20 000 entries. There is no editor, no remote copy or move, and no `sudo`, so files owned by another user are only what your login can reach.

## Local places

The left pane shows only folders you have added. Your download folder is always the first. Press **Add folder…** to add another. **Remove** takes a place off the list and leaves its files alone.

Valakes refuses a place that is:

- a drive root, your home folder, or a folder that contains it;
- a credential folder such as `~/.ssh`, or one that contains or sits inside one;
- Valakes' own data folder;
- `~/Library`, `%USERPROFILE%\AppData`, `~/.local`, `~/.kube`, `~/.docker`, `~/.azure` or `~/.password-store`;
- a folder on a network share that cannot be identified.

The point is that a slip of the mouse, or a compromised window, cannot hand keys, tokens or the vault to a server. Valakes checks a place again every time it uses it. If a folder was replaced by a link to somewhere else, the place says "This folder changed or is gone." Links and junctions inside a place are shown as links and are never followed.

The local pane can list, make a **New folder** and **Show in folder**. It cannot delete, rename, change permissions, view or open a local file.

## Uploads and downloads

To upload, drag files or a folder from your file manager onto the server pane, press **Upload** and choose **Files…** or **Folder…**, or select items in the local pane and press the right arrow button (`Alt+ArrowRight`, `Option+ArrowRight` on macOS), or drag them onto a server folder. To download, select items in the server pane and press the left arrow button (`Alt+ArrowLeft`, `Option+ArrowLeft` on macOS), or drag them onto a local folder. **Download to…** in the server pane's menu asks for a folder each time. Dropping files from your file manager on the local pane does nothing.

An upload sends only what you chose. Links, junctions and special files in a folder are skipped and reported. A file in a credential folder, or with a key-like name (`id_rsa`, `id_ed25519` and the other `id_*`, `.pem`, `.key`, `.ppk`, `.p12`, `.pfx`, `.kdbx`), asks a native confirmation first, with Cancel as the default. A file is written to the server under a temporary name ending in `.part` and renamed when it is complete.

## The transfer list

Every job appears in **Transfers** at the bottom of the panel with progress and speed. **Cancel** stops a job. **Retry** runs a failed job again, and **Clear finished** tidies the list. There is no resume: a transfer cut in the middle starts that file again. If the connection drops, the job ends with "Connection lost" and the partial download is removed. After you reconnect, Retry finishes it. A `.part` file left on the server after a lost connection is named in the job and is not cleaned up later.

## When a name already exists

An upload to a name that exists opens a conflict dialog with **Skip** (the default), **Keep both** and **Replace**, and a checkbox to do the same for the remaining conflicts. On a production host the button reads **Replace on PROD**.

## Downloads

Downloads never overwrite a file. If the name exists you get `name (1)`. They never open anything either. The only follow-up is **Show in folder**.

Each file is created readable only by you, and Valakes marks it as downloaded from the internet before the job reports done: the Mark of the Web (`ZoneId=3`) on Windows, the quarantine attribute on macOS. The system then treats the file as one that came from outside and can warn before you open it.

The download folder is your operating system's Downloads folder until you change it in Settings, **Files**, with **Change...**. Valakes refuses your home folder and credential folders. **Use the Downloads folder** puts the default back after a native confirmation.

### The shell-name warning

Some names make a file manager contact a network location as soon as it shows the folder: `.url`, `.lnk`, `.scf`, `.library-ms`, `.searchConnector-ms`, `.desktop`, `desktop.ini` and a folder named like `.{CLSID}`. If a download creates one, the job ends with a warning that lists them. Valakes keeps the names as the server sent them. **Show in folder** on such a folder first asks a native confirmation whose default is Cancel. If you open the folder in a file manager outside Valakes, Windows may still contact the server a `.url` or `.lnk` points to.

## Deleting

Delete on the server pane always asks. The card has Cancel focused. On a production host, deleting a folder with content shows "Delete ... on PROD", the number of files and their size, and you must type the host name. That second step applies while Command check is on for the host. Valakes refuses to delete `/`, your home directory on the server and every folder above it. A delete that you cancel while it runs keeps what it had already deleted, and the card says so.

## Production hosts

Dropping files on a production server pane, or using the arrow button, first asks "Upload ... to PROD?" with Cancel focused. **Upload** through the file dialog does not ask again, because you chose it on purpose. Permissions read **Apply on PROD**. These questions protect you from a slip. They are not a barrier against a compromised window. See [Hosts and production marking](https://docs.valakes.com/hosts-and-production/).

## Follow the terminal

Turn on **Follow the terminal** and the server pane follows the directory of the terminal, so `cd /srv/files` in the composer moves the panel. **Open terminal here** on a folder puts `cd -- '<folder>'` into the composer and runs nothing. **Insert path** inserts the quoted path.

## Servers without SFTP

If the server has no SFTP service, the panel says "This server has no SFTP service. Files are not available for this host." There is no fallback, and the terminal keeps working.

## Known limits

- A transfer cannot be resumed, and there is no editor.
- A hard link inside a place that points outside it is not detected. Place rules are path rules.
- Moving the SSH code into a separate process is a recorded follow-up: a bug in the SFTP parser would be a bug in Valakes itself.
- Local New folder, adding a place and Show in folder are not written to the audit log. Server jobs and server folder, rename and permission changes are.
- Agents use the same SFTP code, but their transfers have their own rules and never appear in this list. See [Agents](https://docs.valakes.com/agents/#file-transfer-and-the-workspace-folder).
