EN / RU
Home / Reference

libraryfolders.vdf

Updated: 2026-08-25

One small text file is the index of every Steam library on the machine. When games vanish from your library after a drive change, this file is almost always why.

What it does

Steam does not scan your drives for games. It reads a list, and this is the list: every library folder it knows about, and for each one, which app ids are installed there and roughly how large they are.

That makes it a single point of failure in a useful way — one wrong path and a whole library disappears from the client, while every byte of it is still on the disk.

Where it lives

Windows<Steam>\steamapps\libraryfolders.vdf
Linux and Steam Deck~/.local/share/Steam/steamapps/libraryfolders.vdf
Older clients kept it here<Steam>\config\libraryfolders.vdf

What is inside

VDF is Valve's own key–value format: quoted keys, quoted values, braces for nesting. The top level holds one block per library, and each block carries a path, some bookkeeping, and an apps block listing the app ids installed there against their size in bytes.

The trap: library blocks are keyed "0", "1", "2" — exactly like app ids. Anything that edits this file by matching a "digits then digits" pattern will eventually delete a whole library while trying to remove one game. Depth has to be tracked, not shape.

How it breaks

Editing it

Close Steam first. It holds this file open and rewrites it on exit, so an edit made while the client is running is usually overwritten the moment you quit — which looks exactly like the edit not working.

Copy it somewhere safe before touching it. It is a few kilobytes and it is the only record of where everything is.

Most problems do not need an edit at all: Steam → Settings → Storage can add a library folder back, and re-adding the correct path is enough to make a library reappear with its games intact.

Act on it

Vapor Storage Manager reads this file to cross-check what Steam believes against what is actually on disk. When it repairs one it walks brace depth rather than matching patterns, re-checks every path at the moment of writing, and copies the original to a .vsmbak first.

Download Vapor Storage Manager