FlooTransfer
An FTP/FTPS/SFTP client that lives inside VS Code. I wanted to make a better FTP/SFTP VS Code extension than what's currently out there and that had all the features I wanted.
What it does
- Remote Files tree — browse, download, rename, delete, and set permissions
(octal; SFTP always, not every FTP server) on the server. Right-click a file
or folder for Copy Remote Path, or a folder for Calculate Size (total
size and file count, recursively).
- Local Files tree next to it, mirroring the connection's local folder.
Upload from here, or drag files between the two trees to upload/download (drop
on a folder to land them there). Dragging within one tree moves the file and
keeps the other side in sync. Folders go recursively.
- Transfer a file from anywhere — the Explorer, the editor tab, the editor
right-click menu, or a keybinding. Works on images and other binary files too,
not just text. Turn on
uploadOnSave for a connection to upload automatically
every time you save, instead of (or in addition to) doing it by hand.
- Multiple connections per project — e.g.
Preview and Live pointed at the
same folder. If more than one matches you're asked which to use, then it's
cached for the session. Switch Connection on the tree flips which one is
active, and transfers auto-follow whichever connection they used.
- Activities panel (down by the Terminal) logs every transfer with progress
bars, file sizes, bytes transferred so far, and current speed, pops open on
errors, and lets you cancel something mid-transfer (or everything at once,
via Cancel All Transfers).
- Smart Deploy — for a git-managed project, uploads only what changed
since your last deploy instead of the whole thing. See its own section
below.
- Auto-connect — transfer something without being connected and it just asks
for credentials there and then.
- Open Project (
Cmd/Ctrl+Alt+P, or FlooTransfer: Open Project... from the
Command Palette) — jump straight to any project you've configured a connection
for, without leaving VS Code to dig up the folder yourself. Since connections
are stored globally rather than per-project, this lists every one you've ever
set up; a project with more than one connection (like Preview and Live
above) shows up once, not once per connection. Picking an entry normally
opens it the way VS Code's own window.openFoldersInNewWindow setting says
to; hover an entry and click its window icon to open that one in a new
window regardless. A status bar item also shows whichever project the open
folder matches - click it for the same picker.
Setup
Run FlooTransfer: Add Connection for This Project and it'll walk you through it,
or edit connections.json yourself:
[
{
"name": "Preview",
"protocol": "ftp",
"host": "preview.example.com",
"localRoot": "/Users/you/projects/my-site",
"remoteRoot": "/public_html"
},
{
"name": "Live",
"protocol": "sftp",
"host": "example.com",
"authMethod": "key",
"privateKeyPath": "/Users/you/.ssh/id_ed25519",
"localRoot": "/Users/you/projects/my-site",
"remoteRoot": "/var/www/my-site"
}
]
| Field |
Notes |
name |
Required. Shown when picking a connection; must be unique (it's the cache key). |
protocol |
ftp or sftp (default ftp). FTPS is ftp + "secure": true. |
host |
Required. |
port |
Default 21 for FTP, 22 for SFTP. |
secure |
FTP only — use explicit TLS. |
authMethod |
SFTP only — password (default) or key. |
privateKeyPath |
For authMethod: "key" — absolute path to the key. Passphrase asked each session, never stored. |
localRoot |
Absolute path to the local project. Leave unset to pick manually each time. |
remoteRoot |
Directory shown as the tree root. Default /. |
rememberPassword |
See below. Off by default. |
atomicUploads |
See below. Off by default. |
maxConcurrentTransfers |
See Simultaneous transfers below. Defaults to 2. |
ignore |
See Ignoring files below. Defaults to [".git", ".DS_Store", "node_modules", "Thumbs.db", ".svn", ".hg"]. |
uploadOnSave |
Upload a mapped file automatically every time you save it. Off by default. |
deployUncommitted |
Whether Smart Deploy ticks uncommitted changes by default. On by default; set false on a production connection. See Smart Deploy. |
deployMarkerPath |
Where Smart Deploy's marker file goes on the server, relative to remoteRoot (or absolute with a leading /). Defaults to .flootransfer-deploy.json in remoteRoot. Only used when shareDeployState is true. See Smart Deploy. |
shareDeployState |
Whether Smart Deploy keeps a marker file on the server so other machines or teammates stay in sync. Leave it out and the first deploy asks. false keeps everything on this machine. See Smart Deploy. |
Then hit FlooTransfer: Connect, or just start transferring — it asks for
credentials the first time each connection is used.
Remembering a password
By default nothing is stored. Passwords stay in memory for the session
(flooTransfer.sessionDurationMinutes) and are asked for again after that. If that
gets old, set "rememberPassword": true on a connection (or say yes when the
add-connection command asks). After the next successful login the password goes
into your OS keychain and future connects skip the prompt.
Worth understanding the trade: once it's remembered, the password isn't a gate
any more. Anyone on your unlocked machine can reach that server. Same deal as
"remember me" anywhere else, which is fine if you trust the machine and lock your screen. FlooTransfer: Forget Saved Password for Connection
clears a stored one.
On Linux this needs a Secret Service provider running (most desktops have one,
headless/Remote-SSH usually don't). Without it, it quietly falls back to asking
every time.
SFTP host keys
The first time you connect to an SFTP server, FlooTransfer shows you its host
key fingerprint and asks you to trust it, then remembers that fingerprint for
next time - so if a server's key ever changes unexpectedly (which can mean
someone's intercepting the connection, though it can also just mean the
server was reinstalled) you get a clear warning instead of silently connecting
to whatever's on the other end. This is FlooTransfer's own store, not your
system's ~/.ssh/known_hosts - the two are independent.
If you reinstall or re-key a server on purpose, run FlooTransfer: Forget
Known Host Key first so the next connect treats it as trusted again instead
of warning you every time.
Atomic uploads
Normally an upload writes straight to the real filename as bytes arrive, so a
file that's already live can be served half-written for a second. With atomic
uploads the file goes to a temp name first and is renamed into place once it's
fully there. A rename is instant, so the real filename only ever points at a
complete old or complete new version.
- Per connection:
"atomicUploads": true applies it to every upload on that
connection, including each file in a folder upload. Each file is safe on its
own, but a multi-file upload still swaps them in one at a time.
- Batch: for a set of files that should go live together use
FlooTransfer: Add to Atomic Upload Batch (right-click, or the keybinding on the
active tab), review the list in the Atomic Upload
Batch view, then FlooTransfer: Upload Atomic Batch. Everything uploads to temp
names and only gets renamed into place once all uploads finish, back to back.
So the "half new, half old" window is a fraction of a second instead of the
whole upload.
Caveat: not every FTP server allows renaming over an existing file. SFTP almost
always does (FlooTransfer uses posix-rename@openssh.com). If the rename fails you
get an error saying the upload succeeded and where the temp file is.
Simultaneous transfers
Uploading or downloading a folder (or a batch) runs more than one file at a
time - each one over its own connection, the same idea as FileZilla's
"maximum simultaneous transfers". It defaults to 2, matching FileZilla's
own default, which comfortably fits under the connection limit most FTP/SFTP
hosts allow.
Set "maxConcurrentTransfers" on a connection to change it - raise it if
that server tolerates more concurrent connections, or drop it to 1 to go
back to one-at-a-time if a server is stricter (you'll see connection-refused
style errors if you've gone too high). It only affects how many files move
at once; one large file is still a single stream either way.
Ignoring files
Uploading or downloading a folder skips a handful of things by default -
.git, .DS_Store, node_modules, Thumbs.db, .svn, .hg - since almost
nobody actually wants those copied to or from a server. Set "ignore" on a
connection to change the list: [] transfers everything, or your own list of
patterns replaces the default entirely (it doesn't merge with it).
Patterns use */? wildcards and match by name against any file or folder
in the path, at any depth - "node_modules" skips a folder with that exact
name wherever it appears, "*.log" skips any matching file wherever it
appears. This isn't a full .gitignore-style path glob (no anchoring a
pattern to a specific nested location, no negation) - just "always skip
anything named like this."
Smart Deploy
Smart Deploy is FlooTransfer's answer to "do I really have to re-upload
the whole project every time?" - for a project tracked in git, it uploads
only the files that changed since the last time you deployed this specific
connection (and deletes the ones you removed), instead of transferring
everything. It works by comparing your project against a baseline it
remembers per connection, so it always knows exactly what's new.
It also picks up stuff you haven't committed yet - edited files, new
untracked files, deleted files. That's the whole point for me: I want my dev
server to mirror whatever I'm testing right now, and only commit once it
actually works, without a pile of "test" commits. Anything your
.gitignore excludes (.env and friends) is never offered. It keeps track
of what it really put on the server, file by file, so it also cleans up after
itself: revert a test edit and the next deploy puts the committed version
back; delete a throwaway test file and the next deploy removes it from the
server too.
Requires git on your PATH, and only ever shows up for a project that's
actually a git repository - it stays out of the way entirely otherwise.
- FlooTransfer: Smart Deploy does the actual work: right-click a folder
in the Local Files tree (or the native Explorer) to run it, or use the
Command Palette to deploy the current workspace folder.
- First run: since there's no history yet, it asks you to either
upload everything and start tracking, or just mark the current commit
as deployed (if the server's already up to date and you just want to
start tracking from here) - it never re-uploads your whole project
without asking first.
- After that: you get a checklist of everything it's about to do,
split into Committed and Uncommitted changes, all ticked. Hit
Enter to send it all, or untick anything you want to hold back - it'll
still be pending next time. For a production connection, set
"deployUncommitted": false in connections.json - uncommitted stuff
still gets listed, it just starts unticked, so a stray Enter can't push
half-finished work live. (Putting a reverted test edit back to its
committed version counts as "Committed", since that's what it brings
the server back in line with.)
- If some files fail, the rest still count as deployed - only the failed
ones show up again next time. A couple of failures it sorts out on its
own: a move the server won't do as a rename gets redone as upload +
delete, and deleting something that's already gone from the server
(someone removed it by hand) just counts as done.
- Rewrote your history (rebase, amend, squash) after deploying? The
commit it last deployed doesn't exist anymore, so it'll ask: if the
server already has your current commit, pick Server Matches Current
Commit and carry on (uncommitted changes still get offered), or
Upload Everything to start over. The sidebar shows a note about it
instead of disappearing.
- Smart Deploy (sidebar section): a live preview of what the next
deploy would upload/delete/rename appears as its own section under
Local Files, labeled with a small "Git" badge, as soon as there's
anything to show - even before you've ever run Smart Deploy, it'll list
your whole tracked project as pending (since nothing's been marked
deployed yet). Grouped the same way as the checklist, into Committed
and Uncommitted changes. It updates automatically when you save,
create or delete files, commit, or switch connections, and has its own Refresh button and a one-click Deploy Now.
Click a file to see what's actually changing, like in the Source Control
panel: a modified or moved file opens a diff of the server's version
against yours, a new file just opens, and a deleted one shows the
server's copy that's about to go. The little file icon on the row
opens your local file instead. The server side comes out of git, so
it's instant and works offline - FlooTransfer quietly keeps a copy of
any uncommitted version it deploys for exactly this. (If git doesn't
have it, like something deployed before this existed, it downloads
the server's copy instead, which needs you connected.)
If more than one connection is configured for the open project (e.g. a
Preview and a Live server sharing a
localRoot), it asks you to connect
to the one you want previewed, since each connection tracks its own
deploy history independently. Stays hidden entirely for a project with no
matching connection, or one that isn't a git repository.
- FlooTransfer: Mark Commit as Deployed records the current commit as
deployed (with nothing uncommitted on top) without transferring anything - use it to start tracking from
here when the server's already up to date, or after manually fixing
something on the server.
- FlooTransfer: Smart Deploy Status reports how far the connection's
deployed commit is behind
HEAD and how many files are pending (and how
many of those are uncommitted), without transferring anything.
- FlooTransfer: Forget Deploy State clears the tracked baseline for a
connection (locally, and optionally the marker file it wrote to the
server), so the next deploy starts fresh.
Deploy state is always tracked locally, so it works offline and stays fast.
The first time you deploy a connection, Smart Deploy asks whether it'll be
deployed from only this machine or other machines too (another
computer of yours, or a team), and saves the answer as shareDeployState
in connections.json:
- Only this machine (
false): nothing is written to the server. Fine
as long as this really is the only place you deploy from - another
machine wouldn't know what this one already sent up.
- Other machines too (
true): a small .flootransfer-deploy.json
marker file also goes up to the connection's remoteRoot, and the
server's marker wins if the two ever disagree. That's how a machine
that's behind finds out: the server is at a commit it doesn't have, so
Smart Deploy stops and tells you to pull first instead of uploading
older files over newer ones. It only works if the commits get pushed,
since the other machine needs the commit to compare against. The marker
only holds the last deployed commit and when it went out - which
uncommitted files you've sent up never leaves your machine.
Change your mind later by editing shareDeployState. Switching to false
leaves an existing marker on the server, so delete it by hand (or run
Forget Deploy State first, while it's still true).
If your remoteRoot is the public web root, a shared connection's marker can be opened by
anyone who guesses the URL. It's only a commit hash, so no big deal for
most sites, but if you'd rather it wasn't there, set deployMarkerPath to
put it somewhere else - e.g. "../.flootransfer/dev.json" to drop it one
level above the web root. Missing folders get created, and the old marker
gets moved over on the next deploy.
When someone else deploys a connection after you did, FlooTransfer can't be
sure whether the uncommitted stuff you sent up is still there, so your next
deploy just lists those files again to put them back in line - a couple of
extra uploads instead of leaving a stale test file behind. Deletions and renames are only ever applied on the remote server;
your local files are never touched by a deploy. The same ignore patterns
used for folder uploads (see above) apply to deploys too.
Keyboard shortcuts
| Action |
Shortcut |
| Upload |
Cmd/Ctrl+Shift+S |
| Download |
Cmd/Ctrl+Alt+D |
| Rename on remote |
Cmd/Ctrl+Alt+R |
| Delete from remote |
Cmd/Ctrl+Alt+Backspace |
| Add to atomic upload batch |
Cmd/Ctrl+Alt+B |
| Upload atomic batch |
Cmd/Ctrl+Shift+Alt+B |
Cmd/Ctrl+Shift+S is also VS Code's Save As. When the file you're editing
belongs to a connection, this shortcut uploads it; anywhere else it falls
straight through to Save As, so nothing's lost.
Rebind them in Preferences: Open Keyboard Shortcuts if they clash with
anything.
Settings
| Setting |
Default |
Notes |
flooTransfer.sessionDurationMinutes |
60 |
Minutes an entered password stays in memory. 0 = whole session. |
flooTransfer.progressBarColor |
#007ACC |
Any CSS color. |
flooTransfer.activitiesSortOrder |
newestFirst |
newestFirst or oldestFirst. |
flooTransfer.remoteSortDirection |
ascending |
Name sort in both trees. Folders always above files. |
Limitations
- Atomic uploads protect each file, not a whole multi-file deploy as one instant
switch. Also the rename step isn't supported by every FTP server.