-
Notifications
You must be signed in to change notification settings - Fork 111
chop_filetype
wpferguson edited this page Jun 14, 2020
·
1 revision
chop_filetype
remove a filetype from a filename
local df = require "lib/dtutils.file"
local result = df.chop_filetype(path)
path - string - a filename with or without a path
chop_filetype removes the filetype from the filename.
result - string - the path and filename without the filetype