Skip to content

Commit

Permalink
made extensions case invariant
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSimons committed Oct 17, 2024
1 parent 8681953 commit 3e6ba79
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void ProcessFile(string file)
}

var fileName = Path.GetFileNameWithoutExtension(file);
var extension = Path.GetExtension(file);
var extension = Path.GetExtension(file).ToLower();
var newFilePathRelative = Path.Combine(assetsFolderName, fileName + extension);
var newFilePathAbsolute = Path.Combine(assetsFolderPath, fileName + extension);

Expand All @@ -65,7 +65,7 @@ public void ProcessFile(string file)
if (extension.StartsWith('.'))
extension = extension.Substring(1);

var fileTypeEvent = fileTypeEvents.FirstOrDefault(fte => fte.Extension == extension);
var fileTypeEvent = fileTypeEvents.FirstOrDefault(fte => fte.Extension.ToLower() == extension);

Debug.Log("processing file: " + newFilePathRelative);

Expand Down

0 comments on commit 3e6ba79

Please sign in to comment.