reference monoe.path

Lua API Reference

Provides utilty functions for basic io operations.

monoe.path.fullpath

Returns the full path of a file or directory

Parameters

NameTypeDescription
pathstring

Returns


monoe.path.copy

Copies a file or directory

Parameters

NameTypeDescription
isdirbooleanTrue if copying a directory
srcstringSource path
dststringDestination path

monoe.path.content

Returns all files and directories in a path

Parameters

NameTypeDescription
pathstring

Returns


monoe.path.parent

Returns the parent directory of a path

Parameters

NameTypeDescription
pathstring

Returns


monoe.path.create

Creates a directory

Parameters

NameTypeDescription
pathstring

monoe.path.isfile

Checks if a path is a file

Parameters

NameTypeDescription
pathstring

Returns


monoe.path.exist

Checks if a path exists

Parameters

NameTypeDescription
pathstring

Returns


monoe.path.random

Returns a random file or folder

Returns


monoe.path.filename

Returns the file's name

Parameters

NameTypeDescription
pathstring

Returns