Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

refactor(storage): improve LocalTempFileTrait docs and harden toTmpFile stream handling - #58842

Closed
joshtrichards wants to merge 2 commits into
masterfrom
jtr/refactor-storage-LocalTempFileTrait
Closed

joshtrichards wants to merge 2 commits into
masterfrom
jtr/refactor-storage-LocalTempFileTrait

Conversation

@joshtrichards

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

  • Replaces inherited/outdated trait docblock text with trait-specific documentation.
    • Existing docblock was just a copy/paste of the one from Common and thus was not adding anything and was inaccurate.
  • Adds focused method-level docblocks
  • Refactors toTmpFile() for robustness and readability:
    • use pathinfo(..., PATHINFO_EXTENSION) for clearer/consistent extension extraction
    • handle target fopen failure explicitly
    • ensure both source and target streams are always closed via try/finally

TODO

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

It was just a copy/paste of the one one Common and thus was not adding anything/inaccurate.

Signed-off-by: Josh <josh.t.richards@gmail.com>
A refactor for clarity and general robustness

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added this to the Nextcloud 34 milestone Mar 10, 2026
@susnux susnux added the community pull requests from community label Jun 9, 2026
@susnux susnux modified the milestones: Nextcloud 34.0.1, Nextcloud 35 Jun 9, 2026
@blizzz blizzz mentioned this pull request Aug 27, 2026
@susnux

susnux commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request as it has been in draft state without any activity for more than six months.
If you are still interested in this change, feel free to revive it and reopen it (or ask us to reopen it if you cannot).
Thank you for your contribution!

@susnux susnux closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community pull requests from community feature: filesystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants