1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

FileSystemWalkMode

Controls whether Class.FileSystemService:Walk() traverses only the immediate entries of the target directory or also descends recursively into subdirectories. Pass one of these values as the mode argument to Walk; when mode is omitted the method defaults to FileSystemWalkMode.NonRecursive.

Items

NameValueDescription
NonRecursive0Visits only the immediate entries of the specified directory, without descending into subdirectories.
Recursive1Visits all entries in the specified directory and all of its subdirectories, incrementing the iterator's Depth field for each level descended.

NonRecursive

Visits only the immediate entries of the specified directory, without descending into subdirectories.

FieldValue
value0

Recursive

Visits all entries in the specified directory and all of its subdirectories, incrementing the iterator's Depth field for each level descended.

FieldValue
value1