Open the files of a server
- On Mac, open the Files tab. Each of the two panes shows a server or This Mac: choose one at the top of each pane.
- From a session, Files in the side panel shows its files next to the terminal, in the folder of the shell. On Mac and iPad, Files of this server in the session menu opens them too.
- On iPhone, choose + in the Connections tab, then Files of a server, or open the side panel in a terminal and choose Files.
Copy and move
- On Mac, drag files from one pane to the other to copy them. Hold Cmd to move them instead. Copy to right and Copy to left do the same from the menu.
- Drag files from the Finder onto a folder to upload them.
- On iPhone, Upload sends files from the device, Download keeps a copy in the app's folder, and Open in hands a file to another app. Copy to and Move to send files to a folder of another server.
- On iPhone and iPad you can also drag files from the Files app onto the open folder.
When a file already exists, choose Replace, Skip or Keep both, and Apply to all for the rest. Transfers shows each copy with its speed, and lets you cancel or try again.
The same copy with OpenSSH:
scp ./report.pdf deploy@203.0.113.10:/var/www/files/Manage files
- The menu of a folder has New folder, New File, Upload…, Go to folder…, Copy path and Open in terminal.
- On Mac and iPad, the menu of a file has Rename, Duplicate, Move to…, Download, Edit permissions, Properties and Delete.
- On iPhone, touch and hold a file: Preview, Edit, Download and Open in, then Rename, Copy to and Move to. The rest is under More, and Delete is last.
- Edit permissions has boxes for read, write and execute for the owner, the group and others, with the number such as
644, and the owner and group. It works on several files at once. - Show hidden files shows the files whose name starts with a dot. Filter narrows the folder by name.
Preview a file
On iPhone and iPad, tap an image, a PDF, an audio file or a video to open it in the system preview. A text file opens in the editor: touch and hold it and choose Preview to see it in the preview instead.
Edit a file
- Choose Edit in the menu of a text file.
- The editor has line numbers, colours for common file types, Find and Replace, and Go to Line.
- Save. If the file changed on the server meanwhile, the app asks what to do.
History in the editor shows the earlier versions of the file, to compare and restore them. Settings, Terminal, Show more, Memory and Files: Clear file history deletes them.
To use your usual editor instead, choose Edit in Terminal: the file opens in a new session.