Skip to content

revert to QFile::remove to remove single files - #8195

Merged
mgallien merged 3 commits into
masterfrom
bugfix/useQFileAgain
Apr 24, 2025
Merged

revert to QFile::remove to remove single files#8195
mgallien merged 3 commits into
masterfrom
bugfix/useQFileAgain

Conversation

@mgallien

Copy link
Copy Markdown
Collaborator

revert to QFile::remove to remove a single file

still use std::filesystem::remove to remove a single empty folder
QDir::rmdir does not provide any error message when failing to delete a folder

@mgallien mgallien added this to the 3.17.0 milestone Apr 24, 2025
@mgallien
mgallien force-pushed the bugfix/useQFileAgain branch from fb631c5 to d4f2e19 Compare April 24, 2025 08:28
This reverts commit 58d28ab.

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
this API has a way to provide an error when failing to delete a folder

we may want to know why teh folderf ailed to be deleted

QDir::rmdir does not provide any error when failing to delete a folder

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
@mgallien
mgallien force-pushed the bugfix/useQFileAgain branch from d4f2e19 to 0eacdce Compare April 24, 2025 08:29
@mgallien

Copy link
Copy Markdown
Collaborator Author

/backport to stable-3.16

@github-actions

Copy link
Copy Markdown
Contributor

Artifact containing the AppImage: nextcloud-appimage-pr-8195.zip

SHA256 checksum: 84cec3eeb23e0a4c190837fab0e8291b3bb17ba9c89650fa68d3a56a5eec1fe8

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien
mgallien merged commit d92ed44 into master Apr 24, 2025
@mgallien
mgallien deleted the bugfix/useQFileAgain branch April 24, 2025 09:18
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
31 New Code Smells (required ≤ 0)
D Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants