lide.folder

[lide.base] ^1.0

This module is loaded with lide.base it’s part of framework into the lide.folder module we will find the necessary functions to manage folders with Lua.

local folder = lide.folder
folder.copy('C:\\folder', 'D:\\folderdest');

folder.create

Create one or more directories specified by the Directory argument.
nil folder.create ( string sDirectory or table tDirectories )

folder.exists

Determine if the given file exists.|
bool folder.exists ( string sFolderPath )

folder.list

List directory contents.
table folder.list ( string sFolderPath )

folder.remove

Remove current folder.
nil file.exists ( string sFolderPath )

folder.remove_tree

Remove folder and all contents
nil file.remove_tree ( string sFolderPath )