From ee802867dfa5d03b3c5e0fe4cebdaf2f6280c15b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 28 Oct 2020 14:23:01 +0100 Subject: db/update/Walk: add code comments --- src/db/update/Walk.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/db/update/Walk.cxx b/src/db/update/Walk.cxx index 6ac12776e..fc4af265a 100644 --- a/src/db/update/Walk.cxx +++ b/src/db/update/Walk.cxx @@ -94,12 +94,16 @@ UpdateWalk::PurgeDeletedFromDirectory(Directory &directory) noexcept { directory.ForEachChildSafe([&](Directory &child){ if (child.IsMount()) + /* mount points are always preserved */ return; if (DirectoryExists(storage, child) && child.IsPluginAvailable()) return; + /* the directory was deleted (or the plugin which + handles this "virtual" directory is unavailable) */ + editor.LockDeleteDirectory(&child); modified = true; -- cgit v1.2.3