Home / Lua Scripts Libraries API Manual / dtutils.file / get_path
< get_filetype
mkdir >

# get_path

## 🔗NAME

get_path

## 🔗SYNOPSIS

get the path from a file path

## 🔗USAGE

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

filepath - string - path and filename

## 🔗DESCRIPTION

get_path strips the filename and filetype from a path and returns the path

## 🔗RETURN VALUE

result - string - the path

< get_filetype
mkdir >