-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if an exclude file is deleted, skip it and remove it from internal list #4519
Conversation
/backport to stable-3.5 |
if (file.exists() && file.open(QIODevice::ReadOnly)) { | ||
loadExcludeFilePatterns(basePath, file); | ||
if (!file.exists()) { | ||
excludeFileIt = excludeFiles.erase(excludeFileIt); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matthieugallien All this seems complicated. Can't you just loop through _excludeFiles
and remove non-existing exclude files before looping them for loadExcludeFilePatterns(basePath, file);
? This will double the loop, but, will improve readability.
da9e3bd
to
e12572d
Compare
c75e79d
to
1357ef6
Compare
/backport to stable-3.5 |
ignore files can be removed: not an error so adjust tests Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
1357ef6
to
5f6277b
Compare
Kudos, SonarCloud Quality Gate passed! |
AppImage file: Nextcloud-PR-4519-5f6277b3ee70ac5668d8421486401524e3d5c364-x86_64.AppImage |
Signed-off-by: Matthieu Gallien matthieu.gallien@nextcloud.com