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

SPLIT_FILEPATH

NAME

split_filepath

SYNOPSIS

split a filepath into parts

USAGE

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

filepath - string - path and filename

DESCRIPTION

split_filepath splits a filepath into the path, filename, basename and filetype and puts that in a table

RETURN VALUE

result - table - a table containing the path, filename, basename, and filetype

Clone this wiki locally