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
| Name | Value | Description |
|---|---|---|
| NonRecursive | 0 | Visits only the immediate entries of the specified directory, without descending into subdirectories. |
| Recursive | 1 | Visits 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.
| Field | Value |
|---|---|
| value | 0 |
Recursive
Visits all entries in the specified directory and all of its subdirectories, incrementing the iterator's Depth field for each level descended.
| Field | Value |
|---|---|
| value | 1 |