| # rootDir method | |
| *[<Null safety>](https://dart.dev/null-safety)* | |
| [PseudoDir](../../package-fuchsia_vfs_vfs/PseudoDir-class.md) rootDir | |
| () | |
| <p>return root directory which can be used to host other directories | |
| and extend this class.</p> | |
| ## Implementation | |
| ```dart | |
| vfs.PseudoDir rootDir() { | |
| _ensureNotClosed(); | |
| return _root; | |
| } | |
| ``` | |