Home / Lua Scripts Libraries API Manual / dtutils.file / split_filepath
< set_executable_path_preference
test_file >

# 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

< set_executable_path_preference
test_file >