readDirSync method

Result<ReadDir, PathIoError> readDirSync()

Returns an iterator over the entries within a directory. Note: using this method results in the program no longer being able to compile to web.

Implementation

Result<io.ReadDir, PathIoError> readDirSync() =>
    isWindows ? WindowsPath(_string).readDirSync() : UnixPath(_string).readDirSync();