Home / Lua Scripts Libraries API Manual / dtutils.file / get_filetype
< get_filename
get_path >

# 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

< get_filename
get_path >