RbxStu V3 Docs
  • Welcome
  • Information
    • Engine Information
      • Luau API Security
  • Stunc
    • Overview
    • Connections
    • Filesystem
      • readfile
      • writefile
      • appendfile
      • isfile
      • isfolder
      • listfiles
      • makefolder
      • delfile
      • delfolder
      • loadfile
      • dofile
  • Memory
    • getgc
    • reference_object
    • unreference_object
    • get_gc_threshold
  • Closures
    • isunhookable
    • makeunhookable
    • ishooked
    • restorefunction
    • hookfunction
    • hookmetamethod
    • isourclosure
    • iscclosure
    • islclosure
    • clonefunction
    • newcclosure
    • newlclosure
    • loadstring
Powered by GitBook
On this page
  1. Stunc
  2. Filesystem

isfile

Overview of the isfile function.

Function Characteristics

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

Function definition
function isfile(path: string): boolean

Errors:

  • Illegal Path

    • The path provided is considered 'unsafe'.

High-Level Overview:

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

Low-Level Overview:

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

PreviousappendfileNextisfolder

Last updated 4 months ago