isfolder

Overview of the isfolder function.

Function Characteristics

This function is pure; it does not modify any data when called.

Function definition
function isfolder(path: string): boolean

Errors:

  • Illegal Path

    • The path provided is considered 'unsafe'.

High-Level Overview:

The isfolder function follows the already defined UNC specification; it will check if the provided pathpoints to a valid folder in the filesystem.

Low-Level Overview:

pathis read from the luau heap, then utilising std::filesystem::is_directorywe validate if the provided path (once sanitised) is pointing to a valid folder in the filesystem.

Last updated