Home / Lua Scripts Libraries API Manual / dtutils.file / get_basename
< filename_increment
get_executable_path_preference >

# get_basename

## 🔗NAME

get_basename

## 🔗SYNOPSIS

get the filename without the path or extension

## 🔗USAGE

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

filepath - string - path and filename

## 🔗DESCRIPTION

get_basename returns the name of the file without the path or filetype.

## 🔗RETURN VALUE

result - string - the basename of the file

< filename_increment
get_executable_path_preference >