-
Notifications
You must be signed in to change notification settings - Fork 115
get_basename
wpferguson edited this page Jun 14, 2020
·
1 revision
get_basename
get the filename without the path or extension
local df = require "lib/dtutils.file"
local result = df.get_basename(filepath)
filepath - string - path and filename
get_basename returns the name of the file without the path or filetype.
result - string - the basename of the file