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