Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to check if filesystem is case sensitive. #82957

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Oct 7, 2023

Fixes #19592

doc/classes/DirAccess.xml Outdated Show resolved Hide resolved
doc/classes/DirAccess.xml Outdated Show resolved Hide resolved
@bruvzg bruvzg force-pushed the fs_case_check branch 2 times, most recently from b38cdcb to 59b883f Compare October 7, 2023 13:22
@bruvzg
Copy link
Member Author

bruvzg commented Oct 9, 2023

Tested on macOS and Windows 11, seems to work on both. For the reference: case-sensitive mode can be enabled for the directory using the following command:

fsutil file setcasesensitiveinfo <directory_path> enable

@bruvzg bruvzg marked this pull request as ready for review October 9, 2023 07:39
@bruvzg bruvzg requested review from a team as code owners October 9, 2023 07:39
@akien-mga akien-mga modified the milestones: 4.x, 4.2 Oct 9, 2023
@KoBeWi
Copy link
Member

KoBeWi commented Oct 9, 2023

Why the method isn't static? You need to open a path and then provide another path...

@akien-mga
Copy link
Member

Why the method isn't static? You need to open a path and then provide another path...

That would make sense to me. WDYT @bruvzg?

@bruvzg
Copy link
Member Author

bruvzg commented Oct 13, 2023

That would make sense to me.

The same is true for most of DirAccess methods. But since in a current form this method can be used with a relative path, it should not be static.

I guess it depends if it's will be used as relative or absolute path more often (but it's probably won't be used a lot, so there's no difference).

@akien-mga akien-mga merged commit 51f81e1 into godotengine:master Oct 13, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@bruvzg bruvzg deleted the fs_case_check branch October 13, 2023 12:55
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.

Can't rename a file/folder when only changing its case on a case insensitive filesystem (Windows, macOS)
6 participants