LensStudio:FileSystem.ReadDirOptions
ClassUsed with "LensStudio:FileSystem".ReadDirOptions.
Index
Properties
Example
const fs = await import('LensStudio:FileSystem');
const tmp = fs.TempDir.create();
const dir = tmp.path;
// ReadDirOptions: recursive lists files from all subdirectories
const entries: Editor.Path[] = fs.readDir(dir, { recursive: true } as any);
for (const entry of entries) {
console.log('Entry:', entry.toString());
}
Properties
recursive
recursive:
boolean
Whether to read directory contents recursively, including all subdirectories.