LensStudio:FileSystem.CreateDirOptions
ClassUsed with "LensStudio:FileSystem".CreateDirOptions.
Index
Properties
Example
const fs = await import('LensStudio:FileSystem');
const tmp = fs.TempDir.create();
const nested = new Editor.Path(tmp.path.toString())
.appended(new Editor.Path('a'))
.appended(new Editor.Path('b'))
.appended(new Editor.Path('c'));
// CreateDirOptions: recursive creates all intermediate directories
fs.createDir(nested, { recursive: true } as any);
console.log('Created nested directory:', nested.toString());
Properties
recursive
recursive:
boolean
When true, creates all intermediate directories in the path if they do not exist.