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