luadocs/content/lua.scripts.api.manual/dtutils.file/get_filename.md
Bill Ferguson b69d752221 [lua scripts] created manual from script comments
[lua scripts api] created manual from embedded library documentation

[lua api] created stub to contain lua api manual
2020-12-12 15:14:19 -05:00

469 B

title id weight draft author
get_filename get_filename 120 false people

NAME

get_filename

SYNOPSIS

get the filename and extension from a file path

USAGE

local df = require "lib/dtutils.file"
local result = df.get_filename(filepath)

filepath - string - path and filename

DESCRIPTION

get_filename strips the path from a filepath and returns the filename

RETURN VALUE

result - string - the file name and type