Case mismatch opening requested file. Error after renaming files outside of Godot

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Jason Moreland

HI I get the following error after I renamed files in windows explorer. Is there a way to re-import or adjust this so the error is ignored? All files and project works fine.

Godot Engine v3.1.1.stable.official (c) 2007-2019 Juan Linietsky, Ariel Manzur & Godot Contributors.
drivers/windows/file_access_windows.cpp:104 - Case mismatch opening requested file ‘experience.gd’, stored as ‘Experience.gd’ in the filesystem. This file will not open when exported to other case-sensitive platforms.

:bust_in_silhouette: Reply From: Jason Moreland

Fixed it by duplicating files the offending files in Godot and giving them a slightly different name then deleting the original. Then renaming the copies back to what I wanted.

I had a similar issue after moving a bunch of files around in file explorer.

Turned out some of my .png files were a different case then my load(string), but load was automatically fixing the case and finding the correct .png.

WhoDidThis?? | 2020-11-24 19:00

Also make sure that you use git mv if you’re using git as version control or it may still commit changes in x.gd to X.gd

cuppajoeman | 2023-07-05 21:35