Skip to content
wpferguson edited this page Jun 14, 2020 · 1 revision

CHOP_FILETYPE

NAME

chop_filetype

SYNOPSIS

remove a filetype from a filename

USAGE

local df = require "lib/dtutils.file"
local result = df.chop_filetype(path)

path - string - a filename with or without a path

DESCRIPTION

chop_filetype removes the filetype from the filename.

RETURN VALUE

result - string - the path and filename without the filetype

Clone this wiki locally