How it works

Preview, Apply and undo

Why Library Management always shows you a saved plan before it writes, what Apply does with that plan, and the two ways back afterwards.

Checked against v3.1.0 Updated Edit this page Report a problem

The short version#

Library Management changes files in two steps. A preview reads your files and saves a plan of every change it would make, and writes nothing. Applying that exact plan, after you type CONFIRM, is the first write. Every applied run keeps an undo snapshot of what it changed, so it can be undone the same way: preview the undo, check it, apply it. Separately, the first time DroppedNeedle changes a file it keeps the file’s original state, and Restore original state can put that back.

The preview#

A preview comes from Preview organization… on Library Management, from a dry run when you turn on automatic organization, from Preview the new tags in an album’s edition sheet, or from the tag editor.

  • It only reads. Planning works through your files in the background and saves the plan. While it runs, the page says Planning is still read-only.
  • It is pinned. The profile and settings are frozen into the preview. If the profile, the settings or the library folders change afterwards, the preview goes stale and can’t be applied.
  • It expires. A preview lasts the Preview lifetime (hours), 24 by default.
  • It belongs to its maker. Only the admin who made a preview can apply it.
  • Albums change as a whole. Picking some files of an album that would move still moves the whole album, and if one of its files can’t be managed, the rest of the album waits too and says so.
  • Organized albums are left out. A preview of more than one album skips albums already organized with the same settings, and says how many. A preview of one album always plans it.

What each file’s outcome means#

OutcomeWhat it meansWritten by Apply?
EligibleThe file has changes to writeYes
WarningThe file will be written, with something worth knowing, such as a field its format can’t holdYes
BlockedThe file is left alone, with the reason and what to do about itNo
No changeThe file already matches the planNo

The file list opens on Changing, the files Apply will change. The tab only changes what the list shows: Apply writes what the preview planned, whichever tab is open.

Apply#

Apply shows how many tag, path, artwork and sidecar changes it will make, and asks you to type CONFIRM. Then:

  1. The run writes the albums one at a time, in the background, through these phases: Preparing snapshots, Writing staged files, Validating staged files, Publishing files and Committing catalog.
  2. A file that moves is copied to its new place first, and the old file is removed once the copy is checked. Files are never overwritten: a file in the way blocks the move instead.
  3. The operation page shows each file’s result, and a file that failed says why.

Apply is refused when the preview has expired or gone stale, when it has nothing to write, or while the library is switched off. Stopping a run keeps the changes already made; it doesn’t roll them back. If the server stops mid-run, at the next start each album whose files were all staged is finished and any other album is put back as it was.

Undo a run#

Each applied run keeps a before-state snapshot of the files it changed. Undo this operation on the run’s page makes a preview from those snapshots. You check it and apply it like any other.

  • Undo targets only that run’s completed changes, sidecar files included.
  • Files someone changed since are left alone and say so, and a run already undone can’t be undone twice.
  • Snapshots last Undo snapshots (days), 90 by default. After that the run’s page says the snapshots have expired.
  • In a folder managed automatically, undoing a run also leaves the album unmanaged, so the same run isn’t done again by itself.

A tag write from an album’s edition sheet is a run like this too. Whoever wrote the tags can undo it right there, and admins can undo it later from Organization history.

Restore original state#

The first time Library Management changes a file, it keeps the file’s original tags, pictures and path, its original baseline. Restore original state… makes a preview that puts the chosen albums back exactly as they were before DroppedNeedle first managed them. Restored files stay unmanaged until you enable them again.

The kept originals are stored in the undo folder beside library.db, and backups carry them. Purge baselines… on the Automation tab deletes them for good, after you type CONFIRM.

Undo or restore?#

Undo this operationRestore original state
Goes back toBefore that one runBefore DroppedNeedle first managed the file
CoversThat run’s changes onlyEvery run since then, so it is broader than Undo
AfterwardsIn a folder managed automatically, the album is left unmanagedThe restored files stay unmanaged until you enable them again
Available forUndo snapshots (days), 90 by defaultUntil an admin purges the baselines

Other changes that preview first#

Album grouping changes (split, merge, move, reset) and bulk changes to reviews under Check albums also show a preview before anything changes. Those previews last 15 minutes, and only the person who made one can apply it.

What you can change#

Under Library Management › Automation › Recycle bin, retention and refresh:

  • Preview lifetime (hours): 24 by default, from 1 to 168.
  • Undo snapshots (days): 90 by default.
  • Recycle bin folder and Recycle bin retention (days), for files a run sends to the bin.
  • Purge baselines…, to delete the kept originals.

To use all this, see Tag and organize your files with a preview and Turn on automatic organization. The full rules are in the reference: Previews and Apply and Undo and restore.

Docs