Used with "LensStudio:FileSystem".CreateDirOptions.
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()); Copy
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());
Protected
Snap Hidden
When true, creates all intermediate directories in the path if they do not exist.
Used with "LensStudio:FileSystem".CreateDirOptions.
Example