KC's Workspace
Github
Preparing search index...
@kcconfigs/vitest
mocks
<internal>
Dir
Class Dir
A directory stream, like
fs.Dir
.
Implements
IDir
Index
Constructors
constructor
Properties
link
options
path
Methods
[async
Iterator]
close
close
Sync
read
read
Sync
Constructors
constructor
new
Dir
(
link
:
Link
,
options
:
IOpendirOptions
)
:
Dir
Parameters
link
:
Link
options
:
IOpendirOptions
Returns
Dir
Properties
Protected
Readonly
link
link
:
Link
Protected
options
options
:
IOpendirOptions
Readonly
path
path
:
string
Methods
[async
Iterator]
"[asyncIterator]"
()
:
AsyncIterableIterator
<
IDirent
>
Returns
AsyncIterableIterator
<
IDirent
>
close
close
()
:
Promise
<
void
>
Returns
Promise
<
void
>
close
(
callback
?:
(
err
?:
Error
)
=>
void
)
:
void
Parameters
Optional
callback
:
(
err
?:
Error
)
=>
void
Returns
void
close
Sync
closeSync
()
:
void
Returns
void
read
read
()
:
Promise
<
IDirent
|
null
>
Returns
Promise
<
IDirent
|
null
>
read
(
callback
?:
(
err
:
Error
|
null
,
dir
?:
IDirent
|
null
)
=>
void
)
:
void
Parameters
Optional
callback
:
(
err
:
Error
|
null
,
dir
?:
IDirent
|
null
)
=>
void
Returns
void
read
Sync
readSync
()
:
IDirent
|
null
Returns
IDirent
|
null
Settings
Member Visibility
Protected
External
Internal
Beta
Alpha
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
link
options
path
Methods
[async
Iterator]
close
close
Sync
read
read
Sync
Github
KC's Workspace
Loading...
A directory stream, like
fs.Dir.