Files
Both panes work the same way, one on this Mac and one on the server. The pane you clicked last is the one the toolbar and the keys act on; Tab switches.
Moving around
- Open a folder: double-click it, or select it and press Return, ⌘↓ or ⌘O.
- Enclosing folder: ⌘↑, or the ↑ button in the toolbar. The folder you came from is selected.
- Back and forward: ⌘[ and ⌘], or the arrows in the toolbar.
- The path: the line above the list shows where you are. Click any folder in it to go there. A deep path shows its last few folders and a … for the rest; click … to go to the nearest folder it hides.
- Go to Folder: ⇧⌘G and type a path.
~is your home folder on either side, and a path that does not start with/is taken from the folder shown. - Places: on a saved server, the ☆ at the right of the path keeps folders
to go back to:
/etc/nginx,/var/www/app,/var/log. Click it to go to one, or to add or remove the folder shown; it is filled in a folder that is one. Places are saved with the server, so every tab and window connected to it has them.
Selecting
Click to select, ⌘-click to add or remove one, ⇧-click to select a range. ↑ and
↓ move the selection, ⇧↑ and ⇧↓ extend it, ⌘A selects everything. The line at
the bottom of the pane says how many items there are, how many are selected,
how big the selected files are, and how much is free on the disk the folder is
on. On a server that is the space free for you, as df gives it; a server
whose SFTP has no statvfs@openssh.com (OpenSSH has) does not say.
Type a name to select it, as in Finder: the first item whose name starts with what you type. Type quickly and the letters make one name; stop for a second and the next letter starts again.
Filtering
⌘F opens a field above the list. As you type, only the items whose names contain the text are shown, in any case. Return or ↓ goes down into the list with the filter still on; Esc, or the × beside the field, closes it and shows everything again. Going to another folder closes it too.
Sorting and hidden files
Click Name, Size or Modified to sort by it; click again to reverse. Folders always stay on top. Hidden files (names starting with a dot) are not shown until you press ⇧⌘. or the eye in the toolbar; whether new panes show them is a setting.
Opening files
- On this Mac, a file opens in its usual app.
- On the server, a file is downloaded and opened in its usual app, and saving it uploads it again. See Editing files on the server.
Quick Look
Press the space bar to look at the selected files in Quick Look, as in Finder, and again, or Esc, to close it. With the panel open, ↑ and ↓ move through the list and the panel follows.
On the server, a file is downloaded first, into a temporary folder, and is not downloaded again while it is unchanged. Files over 64 MB are not looked at from the server; download them instead.
New folder, new file, rename, delete
- New folder: ⇧⌘N, or the folder button in the toolbar. Type a name and press Return; the new folder is selected.
- New file: ⌥⌘N makes an empty file,
untitled.txtunless you name it otherwise. Open it to start writing in it. - Rename: ⇧↩ or F2, or right-click and Rename…. A name with
/in it is refused, and so is a name that is already taken, on either side: nothing is ever replaced by a rename or a move. - Delete: ⌘⌫, or right-click. etrans asks first. On this Mac the items go to the Trash, on any disk, and Put Back in the Trash brings them back where they were. On the server they go to the server's trash (below).
- Undo: ⌘Z puts back what you deleted last, on either side, where it was, unless something by that name is there now.
The server's trash
What you delete on a server goes into a hidden folder in your home folder
there, ~/.etrans-trash, rather than being deleted for good. Each deletion
gets a folder named for when it happened, holding the item and a note of
where it was.
- ⌘Z puts back the last deletion.
- Show the Server's Trash, in the right-click menu of empty space on the server, goes there. Select a deletion and right-click for Put Back.
- Deleting inside the trash deletes for good.
- What has been there for more than 30 days is deleted for good the next time you connect.
- Only you can open the trash folder (
700). - A rename cannot cross from one disk to another, so something on another
disk than your home folder there, such as a separate
/var/wwwvolume, cannot go to the trash. etrans then leaves it where it is and asks before deleting it for good, as Finder does on a disk without a Trash.
Settings can turn the server's trash off; deletions there are then for good again.
Moving within a pane
Drag items onto a folder in the same pane to move them there, as in Finder. Dragging a folder into itself does nothing.
Copying between the panes
Drag between the panes, drop files from Finder onto the server pane, or press ⇧⌘→ and ⇧⌘←. See Transfers. To copy only what changed between the two folders shown, see Synchronize.
Copy and Paste
⌘C copies the selected items and ⌘V pastes them into the folder a pane shows, as in Finder. Where they go decides what happens:
| Copied from | Pasted in | What happens |
|---|---|---|
| This Mac, or Finder | The server pane | Uploaded |
| The server | The Mac pane | Downloaded |
| This Mac, or Finder | The Mac pane | Copied, as Finder pastes |
| The server | The server pane | Copied on the server itself |
| One server, in one tab or window | Another server, in another | Copied straight across |
On the server itself, a copy over SSH is made by the server's cp, with
permissions and dates, and nothing crosses the network. A login set to SFTP
only runs no commands; there each file is copied with OpenSSH's copy-data
(OpenSSH 9.0 and later), still on the server, and folders, links,
permissions and dates as cp would. Only a server that offers neither has
the bytes come down to this Mac and go back up, which takes as long as a
download and an upload. A folder cannot be pasted into itself.
Files copied in the Mac pane paste in Finder too. Pasting never replaces anything: a copy in the folder its original is in is called “… copy”, then “… copy 2”. Uploads and downloads go through the transfer queue and ask about files that are already there, as dragging does. Copied from the server and pasted somewhere that takes text, they are their paths.
From one server to another: copy on one server in one tab, paste in the server pane of another tab or window connected to the other server. The files go straight across, a chunk at a time from one connection to the other, through this Mac's memory and never its disk, so a large backup moves without the room for it here. It is a transfer like any other: in the drawer as … from the first server, with progress, pause, the speed limit, and the same question about files already there. Each file is written beside where it goes and takes its place only when whole, a failed one carries on from where it stopped, and a script stays runnable. The tab it was copied in has to stay connected until it is done.
Dragging out to Finder
Drag files out of either pane and drop them in Finder, on the desktop, or in any app that takes files. Files on this Mac are copied, never moved, whatever Finder would do on the same disk. Files on the server are downloaded to where they are dropped, through the transfer queue; a name already there gets a copy beside it rather than being replaced.
The right-click menu
Right-click an item, or several, for:
- Open (on the server, Open and Edit),
- Upload or Download, to the folder the other pane shows,
- Quick Look,
- Rename…, Get Info, Copy, Copy Path, and on the server Copy URL (below),
- Show in Finder (this Mac) or Open in Terminal (a folder on the server),
- Move to Trash or Delete….
Right-click empty space for New Folder…, New File…, Go to Folder…, Paste, Get Info on the folder itself, Refresh, Show Hidden Files, Copy Folder Path, Copy Folder URL, and Open in Finder or Open in Terminal.
Copy URL
For a server that serves files on the web, give it a Web URL
(https://cdn.example.com/) and the Web folder on the server that address
shows (/var/www/cdn) in its form. Copy URL (⇧⌘C) then puts the web
address of what is selected on the clipboard, one a line, with spaces and
other letters encoded as a URL needs them:
/var/www/cdn/img/new logo.png is https://cdn.example.com/img/new%20logo.png.
What is not in the web folder has no address, and etrans says so.
The shortcut beside each item is the key that does the same thing. Arrow keys and Return work in the menu too.