class SvelteOnRails::Lib::Utils

def self.file_exist_case_sensitive?(containing_dir, filename)

def self.file_exist_case_sensitive?(containing_dir, filename)
  # Combine the directory path and filename
  full_path = File.join(containing_dir, filename)
  # Check if the file exists and the path matches case-sensitively
  File.exist?(full_path) && Dir[File.join(containing_dir, "**/*")].any? do |f|
    f == full_path
  end
end