DIR_DELIM

From Minetest Developer Wiki
Jump to: navigation, search
Mbox warning.png This page contains unofficial Lua API documentation and is likely to be outdated or wrong.
For the official and up-to-date documentation, refer to lua_api.txt found in your Minetest installation directory under doc.
Mbox warning.png This page has been proposed for deletion for the following reason: "Contains unofficial and potentially outdated, redundant and inconsistent Lua API information"
If you don't think that this page should be deleted, please explain why on the talk page.

Syntax

DIR_DELIM

Description

This builtin constant is set to the path delimiting character used on the current system (eg. "/").
Important Note: It's advised to just use "/" and not DIR_DELIM. "/"s are converted automatically.

Example

local path = minetest.get_modpath(minetest.get_current_modname())
-- dofile(path .. DIR_DELIM .. "another_file.lua") -- Some mods do this, but it is bad.
dofile(path .. "/another_file.lua") -- This is better.
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox