Skip to content

Preserve original file extension in WebDAV temporary files#3207

Open
jim-kirisame wants to merge 1 commit intoPhilippC:mainfrom
jim-kirisame:fix/webdav-tempfile-extension
Open

Preserve original file extension in WebDAV temporary files#3207
jim-kirisame wants to merge 1 commit intoPhilippC:mainfrom
jim-kirisame:fix/webdav-tempfile-extension

Conversation

@jim-kirisame
Copy link
Copy Markdown

📝 Description

Some WebDAV providers do not allow changing file extensions. This change modifies the temporary file naming to insert the .tmp suffix before the extension instead of after it, e.g. file.kdbx becomes file.tmp.abc12345.kdbx instead of file.kdbx.tmp.abc12345.

🔗 Related Issue

None.

🛠️ Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

✅ Checklist

Before submitting this PR, please confirm the following:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own (or any AI generated) code.
  • I have added/updated tests that prove my fix is effective or that my feature works.
  • All new and existing tests passed locally.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have built the app locally, verified that it builds and tested the changes thoroughly.

📸 Screenshots/Videos (if applicable)

Some WebDAV providers do not support changing file extensions. This
change modifies the temporary file naming to insert the .tmp suffix
before the extension instead of after it, e.g. file.kdbx becomes
file.tmp.abc12345.kdbx instead of file.kdbx.tmp.abc12345.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant