Commit ee802867 authored by Max Kellermann's avatar Max Kellermann

db/update/Walk: add code comments

parent ecaa51e3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment