Skip to content

Improve movie writer low disk space: check is specific to path instead of filesystem#118924

Open
aurpine wants to merge 1 commit intogodotengine:masterfrom
aurpine:fix-movie-writer-check-space-DirAccess-create
Open

Improve movie writer low disk space: check is specific to path instead of filesystem#118924
aurpine wants to merge 1 commit intogodotengine:masterfrom
aurpine:fix-movie-writer-check-space-DirAccess-create

Conversation

@aurpine
Copy link
Copy Markdown
Contributor

@aurpine aurpine commented Apr 24, 2026

DirAccess::open is a static method with no side effects aside from object creation. In this context, the return value is unused. I believe this is a mistake and the intention was not to call this for the side-effects of checking if the path can be opened.

As a result of the change, the space check will now be specific to the path.

@aurpine aurpine requested a review from a team as a code owner April 24, 2026 17:41
@aurpine
Copy link
Copy Markdown
Contributor Author

aurpine commented Apr 24, 2026

fyi @Calinou check_disk_space in #105755 also has this issue

Copy link
Copy Markdown
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, it works as expected. Code looks good to me.

@Calinou
Copy link
Copy Markdown
Member

Calinou commented Apr 27, 2026

fyi @Calinou check_disk_space in #105755 also has this issue

I've applied the fix while rebasing #105755, thanks 🙂

@aurpine aurpine changed the title Fix unused DirAccess::create result in movie writer disk space check Improve movie writer low disk space: check is specific to path instead of filesystem Apr 27, 2026
@Repiteo Repiteo modified the milestones: 4.x, 4.8 Apr 28, 2026
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.

4 participants