Skip to content

get_filetype

deekayhd edited this page Mar 29, 2026 · 1 revision

GET_FILETYPE

NAME

get_filetype

SYNOPSIS

get the filetype from a filename

USAGE

local df = require "lib/dtutils.file"
local result = df.get_filetype(filepath)

filepath - string - path and filename

DESCRIPTION

get_filetype returns the filetype from the supplied filepath

RETURN VALUE

result - string - the filetype

Clone this wiki locally