porla_filesystem
Mostly wraps the std::filesystem C++ APIs for filesystem operations.
Exports
create_directories(path: string): boolean?, string?
v1.0
Creates the directory structure as specified by path. Returns a boolean that
indicates success (or not), or an error.
Example
local success, err = fs.create_directories("foo/bar/baz")
exists(path: string): boolean?, string?
v1.0
Checks if the given path exists. Returns a boolean that indicates if it does
exist, or an error.
Example
local exists, err = fs.exists("some-arbitrary/path.txt")