db/update/Walk: add code comments
This commit is contained in:
parent
ecaa51e322
commit
ee802867df
@ -94,12 +94,16 @@ UpdateWalk::PurgeDeletedFromDirectory(Directory &directory) noexcept
|
|||||||
{
|
{
|
||||||
directory.ForEachChildSafe([&](Directory &child){
|
directory.ForEachChildSafe([&](Directory &child){
|
||||||
if (child.IsMount())
|
if (child.IsMount())
|
||||||
|
/* mount points are always preserved */
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (DirectoryExists(storage, child) &&
|
if (DirectoryExists(storage, child) &&
|
||||||
child.IsPluginAvailable())
|
child.IsPluginAvailable())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* the directory was deleted (or the plugin which
|
||||||
|
handles this "virtual" directory is unavailable) */
|
||||||
|
|
||||||
editor.LockDeleteDirectory(&child);
|
editor.LockDeleteDirectory(&child);
|
||||||
|
|
||||||
modified = true;
|
modified = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user