readDirSync method
Synchronously reads the directory given by path and returns an iterable
of Deno.DirEntry.
for (const dirEntry of Deno.readDirSync("/")) {
console.log(dirEntry.name);
}
Throws error if path is not a directory.
Requires allow-read permission.
Implementation
_i11.Iterable<_i4.DirEntry> readDirSync(_i2.Object path) => _i3.callMethod(
this,
'readDirSync',
[path],
);