kodeagent.kutils.detect_file_type#

kodeagent.kutils.detect_file_type(url: str) str[source]#

Identify the content/MIME type of file pointed by a URL.

Parameters:

url – The URL to the file.

Returns:

The detected MIME type or Unknown file type.