Skip to content

Comments

MovieWriter: Check disk space in output directory#114858

Open
boozee wants to merge 1 commit intogodotengine:masterfrom
boozee:PR-113391-bug-with-movie-maker-folder
Open

MovieWriter: Check disk space in output directory#114858
boozee wants to merge 1 commit intogodotengine:masterfrom
boozee:PR-113391-bug-with-movie-maker-folder

Conversation

@boozee
Copy link
Contributor

@boozee boozee commented Jan 11, 2026

Fixes #113391

Summary

WindowsTerminal_Db0ef1vZhK

MovieWriter now opens the output directory directly when checking free space, so the warning reflects the target filesystem instead of the current working directory.

In the attached screen it can be seen that while CWR is set to V, which has less than 6GB available, no warning is output as the movie is written to C with over 1TB available.

Why the previous code didn’t work

The old code created a DirAccess instance and then called the static DirAccess::open() (via dir->open(path)), which returns a new object but doesn’t modify the existing one. As a result, get_space_left() still ran on the default current directory.

@akien-mga akien-mga requested a review from Calinou January 11, 2026 15:14
@akien-mga akien-mga changed the title Check disk space in output directory MovieWriter: Check disk space in output directory Jan 11, 2026
@AThousandShips AThousandShips added this to the 4.6 milestone Jan 12, 2026
@boozee boozee force-pushed the PR-113391-bug-with-movie-maker-folder branch from 393b959 to 36df7ef Compare January 17, 2026 12:20
@boozee boozee force-pushed the PR-113391-bug-with-movie-maker-folder branch from 36df7ef to 204036b Compare January 25, 2026 16:12
@Repiteo Repiteo modified the milestones: 4.6, 4.x Jan 26, 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.

Movie Maker checking the wrong directory for available disk space

4 participants