db/update/Walk: add code comments

This commit is contained in:
Max Kellermann 2020-10-28 14:23:01 +01:00
parent ecaa51e322
commit ee802867df

View File

@ -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;