All articles

How to Group Server Connections and Open Your VPN First on a Mac

· 4 min read

If you connect to more than a handful of servers from a Mac, the Finder's Connect to Server (⌘K) soon gets in the way. Its favorites are one flat list of addresses, it doesn't do SFTP at all, and it knows nothing about the VPN your office NAS sits behind: try to connect before the VPN is up and you just get an error.

Folia Files 1.4 handles both. Connections can be sorted into groups (Work, Clients, Home…), in their window and in the sidebar, and each connection can open an app first, your VPN for example, and wait for it before mounting. Here is how to set it up.

Where your connections live in Folia Files

Every server or cloud you add in Folia Files is a connection: SFTP, SMB, FTP and FTPS, WebDAV, NFS, S3-compatible storage, or a cloud account. Once mounted, it opens like a disk, and it is listed in the left sidebar under Servers or Clouds.

To manage them, open Tools › Connections (Servers and Clouds)… (⌘K), or right-click Servers in the sidebar and choose Manage Connections…. The window lists your connections on the left; the settings of the one you select are on the right.

How to sort connections into groups

  1. Open the Connections window (⌘K).
  2. Click the … button under the list and choose New Group…. Type its name, then click Create.
  3. Put connections in it, whichever way you prefer:
    • drag a connection onto the group's title;
    • right-click a connection and choose Move to Group, then the group;
    • select a connection and pick the group in its Group menu, on the right.
  4. To rename or delete a group, right-click its title. Deleting a group never deletes its connections: they simply go back to no group.

The list now shows each group with its connections under it, then the ones in no group under Servers and Clouds. When the list gets long, type in Search by name or address at the top: it filters by name, address and user name as you type.

Groups in the sidebar

The same groups appear in the left sidebar. Under Servers and under Clouds, the connections in no group come first, then each group under its own title. Click a group's title to fold it; Folia remembers which ones you folded. Right-click a connection in the sidebar to move it to another group without opening the window.

A tip: fold the groups you don't use every day. Your daily servers stay one click away, the rest out of sight.

How to open your VPN before connecting

  1. In the Connections window, select the connection that needs the VPN.
  2. In the Open First section, turn on Open an app before connecting.
  3. Choose the app in the window that opens (it starts in Applications): your VPN client, or any other app the connection needs.
  4. Set Wait 5 s after it opens to the time your VPN usually takes to connect, from 0 to 120 seconds.

From then on, when you mount that connection, from the sidebar or the Connections window, Folia Files opens the app, waits the time you set, then connects. If the app is already open, it connects at once. The same goes for connections mounted automatically at launch and for automatic reconnections.

What Open First doesn't do

  • It opens the app; it doesn't press its Connect button. That's enough when the VPN app connects by itself as soon as it opens: look for that option in its settings. Without it, the app opens but the tunnel stays down.
  • "Already open" isn't "connected". If the VPN app is running but disconnected, Folia doesn't wait, and the mount fails. Right-click the connection and choose Connection Log to see what happened.
  • A VPN set up in macOS's own settings has no app to open. Connect it yourself before mounting.

Moving your connections to another Mac

In the … menu of the Connections window, Export Connections… saves all your connections, with their groups and passwords, in one file protected by a password you choose. On the other Mac, Import Connections… adds them; a connection with the same address is updated rather than duplicated. Groups and Open First settings come along.

Finder vs Folia Files for servers

The Finder is fine for one SMB share you open now and then. Past that:

  • Organization: the Finder has a flat list of favorite servers and a list of recent ones. Folia has groups, a search field and folding in the sidebar.
  • Protocols: the Finder connects to SMB, NFS, WebDAV and FTP (read-only), not SFTP or S3. Folia mounts those too, and the website version writes over FTP.
  • Before connecting: the Finder connects right away. Folia can open an app first and wait for it.
  • Reconnecting: Folia can mount a connection at launch and reconnect it when it drops; the Finder leaves that to you or to a login item.

For a single share you want back at every login, this guide to SMB shares goes through the options step by step.

In the App Store version of Folia Files, SFTP and S3 connections go through the free Folia Files Companion app, and SMB, WebDAV, FTP and NFS shares are mounted by macOS itself (FTP read-only). More about connections on the servers and clouds page.