Lua
C++
Edit

ExtractDir

This function returns the folder part of a file path.

Syntax

Parameter Description
path full or relative file path

Returns

Returns the folder part of the specified path.

Example

path = "C:/Windows/explorer.exe"

print("Full path: " .. path)
print("File name: " .. StripDir(path))
print("File directory: " .. ExtractDir(path))
print("File extension: " .. ExtractExt(path))
print("File name without extension: " .. StripAll(path))
print("File path without extension: " .. StripExt(path))
Copyright © 2024 Ultra Software.
All rights reserved.