The previous implementation of file extension checking was case-sensitive, which could lead to issues on file systems that are case-insensitive. This commit addresses this by introducing lower() to ensure that file extensions are compared in a case-insensitive manner.
The previous implementation of file extension checking was case-sensitive, which could lead to issues on file systems that are case-insensitive. This commit addresses this by introducing
lower()
to ensure that file extensions are compared in a case-insensitive manner.