Skip to content

Commit

Permalink
Library: don't prevent adding a new directory if an existing dir is m…
Browse files Browse the repository at this point in the history
…issing

It is checked whether the new directory exists beforehand, therefor the checks below
can not be tricked and no inconsistences should arise
  • Loading branch information
ronso0 committed Dec 27, 2023
1 parent 1960610 commit f1d2278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/dao/directorydao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ DirectoryDAO::AddResult DirectoryDAO::addDirectory(
<< ": Loaded directory"
<< oldDir.location()
<< "does not exist or is inaccessible";
return AddResult::InvalidOrMissingDirectory;
continue;
}
const auto oldCanonicalLocation = oldDir.canonicalLocation();
DEBUG_ASSERT(!oldCanonicalLocation.isEmpty());
Expand Down

0 comments on commit f1d2278

Please sign in to comment.