dl
dl::File::Lua 命名空间参考

文件系统lua接口 更多...

函数

std::vector< std::string > lua_GetPathFileAll_3 (std::string_view path, std::string_view regex, bool recursion)
 获取文件夹所有文件
 
std::vector< std::string > lua_GetPathFileAll_2 (std::string_view path, std::string_view regex)
 获取文件夹所有文件
 
std::vector< std::string > lua_GetPathFileAll_1 (std::string_view path)
 获取文件夹所有文件
 

详细描述

文件系统lua接口

函数说明

◆ lua_GetPathFileAll_1()

std::vector< std::string > dl::File::Lua::lua_GetPathFileAll_1 ( std::string_view path)
inline

获取文件夹所有文件

参数
[in]path路径
返回值
返回相对路径(递归)

在文件 dl_file.h425 行定义.

◆ lua_GetPathFileAll_2()

std::vector< std::string > dl::File::Lua::lua_GetPathFileAll_2 ( std::string_view path,
std::string_view regex )
inline

获取文件夹所有文件

参数
[in]path路径
[in]regex正则表达式,例如 .(png|jpg)$
返回值
返回相对路径(递归)

在文件 dl_file.h413 行定义.

◆ lua_GetPathFileAll_3()

std::vector< std::string > dl::File::Lua::lua_GetPathFileAll_3 ( std::string_view path,
std::string_view regex,
bool recursion )
inline

获取文件夹所有文件

参数
[in]path路径
[in]regex正则表达式,例如 .(png|jpg)$
[in]recursion递归文件夹
返回值
返回相对路径

在文件 dl_file.h401 行定义.