Skip to content
wpferguson edited this page Jun 14, 2020 · 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