Search
Preparing search index...
The search index is not available
Yarn API
Home
Configuration
Features
CLI
Advanced
GitHub
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
yarnpkg-fslib
MountableFS
Globals
{"Generic Packages":{"@yarnpkg/core":"yarnpkg_core","@yarnpkg/fslib":"yarnpkg_fslib","@yarnpkg/libzip":"yarnpkg_libzip","@yarnpkg/nm":"yarnpkg_nm","@yarnpkg/parsers":"yarnpkg_parsers","@yarnpkg/pnp":"yarnpkg_pnp","@yarnpkg/pnpify":"yarnpkg_pnpify","@yarnpkg/sdks":"yarnpkg_sdks","@yarnpkg/shell":"yarnpkg_shell"},"Yarn Packages":{"@yarnpkg/builder":"yarnpkg_builder","@yarnpkg/cli":"yarnpkg_cli"},"Default Plugins":{"@yarnpkg/plugin-compat":"plugin_compat","@yarnpkg/plugin-dlx":"plugin_dlx","@yarnpkg/plugin-essentials":"plugin_essentials","@yarnpkg/plugin-file":"plugin_file","@yarnpkg/plugin-git":"plugin_git","@yarnpkg/plugin-github":"plugin_github","@yarnpkg/plugin-http":"plugin_http","@yarnpkg/plugin-init":"plugin_init","@yarnpkg/plugin-link":"plugin_link","@yarnpkg/plugin-nm":"plugin_nm","@yarnpkg/plugin-npm":"plugin_npm","@yarnpkg/plugin-npm-cli":"plugin_npm_cli","@yarnpkg/plugin-pack":"plugin_pack","@yarnpkg/plugin-patch":"plugin_patch","@yarnpkg/plugin-pnp":"plugin_pnp"},"Contrib Plugins":{"@yarnpkg/plugin-constraints":"plugin_constraints","@yarnpkg/plugin-exec":"plugin_exec","@yarnpkg/plugin-interactive-tools":"plugin_interactive_tools","@yarnpkg/plugin-stage":"plugin_stage","@yarnpkg/plugin-typescript":"plugin_typescript","@yarnpkg/plugin-version":"plugin_version","@yarnpkg/plugin-workspace-tools":"plugin_workspace_tools"}}
Interface MountableFS
Hierarchy
FakeFS
<
PortablePath
>
MountableFS
Constructors
constructor
Properties
pathUtils
Methods
accessPromise
accessSync
appendFilePromise
appendFileSync
changeFilePromise
changeFileSync
checksumFilePromise
chmodPromise
chmodSync
chownPromise
chownSync
closePromise
closeSync
copyFilePromise
copyFileSync
copyPromise
copySync
createReadStream
createWriteStream
discardAndClose
existsPromise
existsSync
fchmodPromise
fchmodSync
fchownPromise
fchownSync
fstatPromise
fstatSync
ftruncatePromise
ftruncateSync
genTraversePromise
getExtractHint
getRealPath
hasOpenFileHandles
linkPromise
linkSync
lockPromise
lstatPromise
lstatSync
lutimesPromise
lutimesSync
mkdirPromise
mkdirSync
mkdirpPromise
mkdirpSync
movePromise
moveSync
openPromise
openSync
opendirPromise
opendirSync
preserveTimePromise
preserveTimeSync
readFilePromise
readFileSync
readJsonPromise
readJsonSync
readPromise
readSync
readdirPromise
readdirSync
readlinkPromise
readlinkSync
realpathPromise
realpathSync
removePromise
removeSync
renamePromise
renameSync
resolve
rmdirPromise
rmdirSync
saveAndClose
statPromise
statSync
symlinkPromise
symlinkSync
truncatePromise
truncateSync
unlinkPromise
unlinkSync
unwatchFile
utimesPromise
utimesSync
watch
watchFile
writeFilePromise
writeFileSync
writeJsonPromise
writeJsonSync
writePromise
writeSync
Constructors
Protected
constructor
new
MountableFS
(
pathUtils
:
PathUtils
<
PortablePath
>
)
:
MountableFS
Parameters
pathUtils:
PathUtils
<
PortablePath
>
Returns
MountableFS
Properties
path
Utils
path
Utils
:
PathUtils
<
PortablePath
>
Methods
Abstract
access
Promise
access
Promise
(
p
:
PortablePath
, mode
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Optional
mode:
undefined
|
number
Returns
Promise
<
void
>
Abstract
access
Sync
access
Sync
(
p
:
PortablePath
, mode
?:
undefined
|
number
)
:
void
Parameters
p:
PortablePath
Optional
mode:
undefined
|
number
Returns
void
Abstract
append
File
Promise
append
File
Promise
(
p
:
FSPath
<
PortablePath
>
, content
:
string
|
Uint8Array
, opts
?:
WriteFileOptions
)
:
Promise
<
void
>
Parameters
p:
FSPath
<
PortablePath
>
content:
string
|
Uint8Array
Optional
opts:
WriteFileOptions
Returns
Promise
<
void
>
Abstract
append
File
Sync
append
File
Sync
(
p
:
FSPath
<
PortablePath
>
, content
:
string
|
Uint8Array
, opts
?:
WriteFileOptions
)
:
void
Parameters
p:
FSPath
<
PortablePath
>
content:
string
|
Uint8Array
Optional
opts:
WriteFileOptions
Returns
void
change
File
Promise
change
File
Promise
(
p
:
PortablePath
, content
:
Buffer
)
:
Promise
<
void
>
change
File
Promise
(
p
:
PortablePath
, content
:
string
, opts
?:
ChangeFileOptions
)
:
Promise
<
void
>
Parameters
p:
PortablePath
content:
Buffer
Returns
Promise
<
void
>
Parameters
p:
PortablePath
content:
string
Optional
opts:
ChangeFileOptions
Returns
Promise
<
void
>
change
File
Sync
change
File
Sync
(
p
:
PortablePath
, content
:
Buffer
)
:
void
change
File
Sync
(
p
:
PortablePath
, content
:
string
, opts
?:
ChangeFileOptions
)
:
void
Parameters
p:
PortablePath
content:
Buffer
Returns
void
Parameters
p:
PortablePath
content:
string
Optional
opts:
ChangeFileOptions
Returns
void
checksum
File
Promise
checksum
File
Promise
(
path
:
PortablePath
, __namedParameters
?:
object
)
:
Promise
<
string
>
Parameters
path:
PortablePath
Default value
__namedParameters:
object
= {}
algorithm
:
string
Returns
Promise
<
string
>
Abstract
chmod
Promise
chmod
Promise
(
p
:
PortablePath
, mask
:
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
mask:
number
Returns
Promise
<
void
>
Abstract
chmod
Sync
chmod
Sync
(
p
:
PortablePath
, mask
:
number
)
:
void
Parameters
p:
PortablePath
mask:
number
Returns
void
Abstract
chown
Promise
chown
Promise
(
p
:
PortablePath
, uid
:
number
, gid
:
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
uid:
number
gid:
number
Returns
Promise
<
void
>
Abstract
chown
Sync
chown
Sync
(
p
:
PortablePath
, uid
:
number
, gid
:
number
)
:
void
Parameters
p:
PortablePath
uid:
number
gid:
number
Returns
void
Abstract
close
Promise
close
Promise
(
fd
:
number
)
:
Promise
<
void
>
Parameters
fd:
number
Returns
Promise
<
void
>
Abstract
close
Sync
close
Sync
(
fd
:
number
)
:
void
Parameters
fd:
number
Returns
void
Abstract
copy
File
Promise
copy
File
Promise
(
sourceP
:
PortablePath
, destP
:
PortablePath
, flags
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
sourceP:
PortablePath
destP:
PortablePath
Optional
flags:
undefined
|
number
Returns
Promise
<
void
>
Abstract
copy
File
Sync
copy
File
Sync
(
sourceP
:
PortablePath
, destP
:
PortablePath
, flags
?:
undefined
|
number
)
:
void
Parameters
sourceP:
PortablePath
destP:
PortablePath
Optional
flags:
undefined
|
number
Returns
void
copy
Promise
copy
Promise
(
destination
:
PortablePath
, source
:
PortablePath
, options
?:
undefined
|
object
)
:
Promise
<
void
>
copy
Promise<P2>
(
destination
:
PortablePath
, source
:
P2
, options
:
object
)
:
Promise
<
void
>
Parameters
destination:
PortablePath
source:
PortablePath
Optional
options:
undefined
|
object
Returns
Promise
<
void
>
Type parameters
P2
:
Path
Parameters
destination:
PortablePath
source:
P2
options:
object
base
Fs
:
FakeFS
<
P2
>
Optional
link
Strategy
?:
LinkStrategy
<
PortablePath
>
|
null
Optional
overwrite
?:
undefined
|
false
|
true
Optional
stable
Sort
?:
undefined
|
false
|
true
Optional
stable
Time
?:
undefined
|
false
|
true
Returns
Promise
<
void
>
copy
Sync
copy
Sync
(
destination
:
PortablePath
, source
:
PortablePath
, options
?:
undefined
|
object
)
:
void
copy
Sync<P2>
(
destination
:
PortablePath
, source
:
P2
, options
:
object
)
:
void
deprecated
Prefer using
copyPromise
instead
Parameters
destination:
PortablePath
source:
PortablePath
Optional
options:
undefined
|
object
Returns
void
Type parameters
P2
:
Path
Parameters
destination:
PortablePath
source:
P2
options:
object
base
Fs
:
FakeFS
<
P2
>
Optional
overwrite
?:
undefined
|
false
|
true
Returns
void
Abstract
create
Read
Stream
create
Read
Stream
(
p
:
PortablePath
|
null
, opts
?:
CreateReadStreamOptions
)
:
ReadStream
Parameters
p:
PortablePath
|
null
Optional
opts:
CreateReadStreamOptions
Returns
ReadStream
Abstract
create
Write
Stream
create
Write
Stream
(
p
:
PortablePath
|
null
, opts
?:
CreateWriteStreamOptions
)
:
WriteStream
Parameters
p:
PortablePath
|
null
Optional
opts:
CreateWriteStreamOptions
Returns
WriteStream
Optional
discard
And
Close
discard
And
Close
(
)
:
void
Returns
void
Abstract
exists
Promise
exists
Promise
(
p
:
PortablePath
)
:
Promise
<
boolean
>
Parameters
p:
PortablePath
Returns
Promise
<
boolean
>
Abstract
exists
Sync
exists
Sync
(
p
:
PortablePath
)
:
boolean
Parameters
p:
PortablePath
Returns
boolean
Abstract
fchmod
Promise
fchmod
Promise
(
fd
:
number
, mask
:
number
)
:
Promise
<
void
>
Parameters
fd:
number
mask:
number
Returns
Promise
<
void
>
Abstract
fchmod
Sync
fchmod
Sync
(
fd
:
number
, mask
:
number
)
:
void
Parameters
fd:
number
mask:
number
Returns
void
Abstract
fchown
Promise
fchown
Promise
(
fd
:
number
, uid
:
number
, gid
:
number
)
:
Promise
<
void
>
Parameters
fd:
number
uid:
number
gid:
number
Returns
Promise
<
void
>
Abstract
fchown
Sync
fchown
Sync
(
fd
:
number
, uid
:
number
, gid
:
number
)
:
void
Parameters
fd:
number
uid:
number
gid:
number
Returns
void
Abstract
fstat
Promise
fstat
Promise
(
fd
:
number
)
:
Promise
<
Stats
>
fstat
Promise
(
fd
:
number
, opts
:
object
)
:
Promise
<
BigIntStats
>
fstat
Promise
(
fd
:
number
, opts
?:
undefined
|
object
)
:
Promise
<
BigIntStats
|
Stats
>
Parameters
fd:
number
Returns
Promise
<
Stats
>
Parameters
fd:
number
opts:
object
bigint
:
true
Returns
Promise
<
BigIntStats
>
Parameters
fd:
number
Optional
opts:
undefined
|
object
Returns
Promise
<
BigIntStats
|
Stats
>
Abstract
fstat
Sync
fstat
Sync
(
fd
:
number
)
:
Stats
fstat
Sync
(
fd
:
number
, opts
:
object
)
:
BigIntStats
fstat
Sync
(
fd
:
number
, opts
?:
undefined
|
object
)
:
BigIntStats
|
Stats
Parameters
fd:
number
Returns
Stats
Parameters
fd:
number
opts:
object
bigint
:
true
Returns
BigIntStats
Parameters
fd:
number
Optional
opts:
undefined
|
object
Returns
BigIntStats
|
Stats
Abstract
ftruncate
Promise
ftruncate
Promise
(
fd
:
number
, len
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
fd:
number
Optional
len:
undefined
|
number
Returns
Promise
<
void
>
Abstract
ftruncate
Sync
ftruncate
Sync
(
fd
:
number
, len
?:
undefined
|
number
)
:
void
Parameters
fd:
number
Optional
len:
undefined
|
number
Returns
void
gen
Traverse
Promise
gen
Traverse
Promise
(
init
:
PortablePath
, __namedParameters
?:
object
)
:
AsyncGenerator
<
P
,
void
,
unknown
>
Parameters
init:
PortablePath
Default value
__namedParameters:
object
= {}
stable
Sort
:
boolean
Returns
AsyncGenerator
<
P
,
void
,
unknown
>
Abstract
get
Extract
Hint
get
Extract
Hint
(
hints
:
ExtractHintOptions
)
:
boolean
deprecated:
Moved to jsInstallUtils
Parameters
hints:
ExtractHintOptions
Returns
boolean
Abstract
get
Real
Path
get
Real
Path
(
)
:
PortablePath
Returns
PortablePath
Optional
has
Open
File
Handles
has
Open
File
Handles
(
)
:
boolean
Returns
boolean
Abstract
link
Promise
link
Promise
(
existingP
:
PortablePath
, newP
:
PortablePath
)
:
Promise
<
void
>
Parameters
existingP:
PortablePath
newP:
PortablePath
Returns
Promise
<
void
>
Abstract
link
Sync
link
Sync
(
existingP
:
PortablePath
, newP
:
PortablePath
)
:
void
Parameters
existingP:
PortablePath
newP:
PortablePath
Returns
void
lock
Promise
lock
Promise<T>
(
affectedPath
:
PortablePath
, callback
:
function
)
:
Promise
<
T
>
Type parameters
T
Parameters
affectedPath:
PortablePath
callback:
function
(
)
:
Promise
<
T
>
Returns
Promise
<
T
>
Returns
Promise
<
T
>
Abstract
lstat
Promise
lstat
Promise
(
p
:
PortablePath
)
:
Promise
<
Stats
>
lstat
Promise
(
p
:
PortablePath
, opts
:
StatOptions
&
object
|
undefined
)
:
Promise
<
Stats
>
lstat
Promise
(
p
:
PortablePath
, opts
:
StatOptions
&
object
)
:
Promise
<
BigIntStats
>
lstat
Promise
(
p
:
PortablePath
, opts
?:
StatOptions
)
:
Promise
<
Stats
|
BigIntStats
>
Parameters
p:
PortablePath
Returns
Promise
<
Stats
>
Parameters
p:
PortablePath
opts:
StatOptions
&
object
|
undefined
Returns
Promise
<
Stats
>
Parameters
p:
PortablePath
opts:
StatOptions
&
object
Returns
Promise
<
BigIntStats
>
Parameters
p:
PortablePath
Optional
opts:
StatOptions
Returns
Promise
<
Stats
|
BigIntStats
>
Abstract
lstat
Sync
lstat
Sync
(
p
:
PortablePath
)
:
Stats
lstat
Sync
(
p
:
PortablePath
, opts
?:
StatSyncOptions
&
object
)
:
Stats
|
undefined
lstat
Sync
(
p
:
PortablePath
, opts
:
StatSyncOptions
&
object
)
:
BigIntStats
|
undefined
lstat
Sync
(
p
:
PortablePath
, opts
?:
StatSyncOptions
&
object
)
:
Stats
lstat
Sync
(
p
:
PortablePath
, opts
:
StatSyncOptions
&
object
)
:
BigIntStats
lstat
Sync
(
p
:
PortablePath
, opts
:
StatSyncOptions
&
object
)
:
Stats
|
BigIntStats
lstat
Sync
(
p
:
PortablePath
, opts
?:
StatSyncOptions
)
:
Stats
|
BigIntStats
|
undefined
Parameters
p:
PortablePath
Returns
Stats
Parameters
p:
PortablePath
Optional
opts:
StatSyncOptions
&
object
Returns
Stats
|
undefined
Parameters
p:
PortablePath
opts:
StatSyncOptions
&
object
Returns
BigIntStats
|
undefined
Parameters
p:
PortablePath
Optional
opts:
StatSyncOptions
&
object
Returns
Stats
Parameters
p:
PortablePath
opts:
StatSyncOptions
&
object
Returns
BigIntStats
Parameters
p:
PortablePath
opts:
StatSyncOptions
&
object
Returns
Stats
|
BigIntStats
Parameters
p:
PortablePath
Optional
opts:
StatSyncOptions
Returns
Stats
|
BigIntStats
|
undefined
Abstract
lutimes
Promise
lutimes
Promise
(
p
:
PortablePath
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
Promise
<
void
>
Abstract
lutimes
Sync
lutimes
Sync
(
p
:
PortablePath
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
void
Parameters
p:
PortablePath
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
void
Abstract
mkdir
Promise
mkdir
Promise
(
p
:
PortablePath
, opts
?:
MkdirOptions
)
:
Promise
<
string
|
undefined
>
Parameters
p:
PortablePath
Optional
opts:
MkdirOptions
Returns
Promise
<
string
|
undefined
>
Abstract
mkdir
Sync
mkdir
Sync
(
p
:
PortablePath
, opts
?:
MkdirOptions
)
:
string
|
undefined
Parameters
p:
PortablePath
Optional
opts:
MkdirOptions
Returns
string
|
undefined
mkdirp
Promise
mkdirp
Promise
(
p
:
PortablePath
, __namedParameters
?:
object
)
:
Promise
<
string
|
undefined
>
Parameters
p:
PortablePath
Default value
__namedParameters:
object
= {}
chmod
:
undefined
|
number
utimes
:
undefined
|
[
string
|
number
|
Date
,
string
|
number
|
Date
]
Returns
Promise
<
string
|
undefined
>
mkdirp
Sync
mkdirp
Sync
(
p
:
PortablePath
, __namedParameters
?:
object
)
:
string
|
undefined
Parameters
p:
PortablePath
Default value
__namedParameters:
object
= {}
chmod
:
undefined
|
number
utimes
:
undefined
|
[
string
|
number
|
Date
,
string
|
number
|
Date
]
Returns
string
|
undefined
move
Promise
move
Promise
(
fromP
:
PortablePath
, toP
:
PortablePath
)
:
Promise
<
void
>
Parameters
fromP:
PortablePath
toP:
PortablePath
Returns
Promise
<
void
>
move
Sync
move
Sync
(
fromP
:
PortablePath
, toP
:
PortablePath
)
:
void
Parameters
fromP:
PortablePath
toP:
PortablePath
Returns
void
Abstract
open
Promise
open
Promise
(
p
:
PortablePath
, flags
:
string
, mode
?:
undefined
|
number
)
:
Promise
<
number
>
Parameters
p:
PortablePath
flags:
string
Optional
mode:
undefined
|
number
Returns
Promise
<
number
>
Abstract
open
Sync
open
Sync
(
p
:
PortablePath
, flags
:
string
, mode
?:
undefined
|
number
)
:
number
Parameters
p:
PortablePath
flags:
string
Optional
mode:
undefined
|
number
Returns
number
Abstract
opendir
Promise
opendir
Promise
(
p
:
PortablePath
, opts
?:
OpendirOptions
)
:
Promise
<
Dir
<
PortablePath
>
>
Parameters
p:
PortablePath
Optional
opts:
OpendirOptions
Returns
Promise
<
Dir
<
PortablePath
>
>
Abstract
opendir
Sync
opendir
Sync
(
p
:
PortablePath
, opts
?:
OpendirOptions
)
:
Dir
<
PortablePath
>
Parameters
p:
PortablePath
Optional
opts:
OpendirOptions
Returns
Dir
<
PortablePath
>
preserve
Time
Promise
preserve
Time
Promise
(
p
:
PortablePath
, cb
:
function
)
:
Promise
<
void
>
Parameters
p:
PortablePath
cb:
function
(
)
:
Promise
<
PortablePath
|
void
>
Returns
Promise
<
PortablePath
|
void
>
Returns
Promise
<
void
>
preserve
Time
Sync
preserve
Time
Sync
(
p
:
PortablePath
, cb
:
function
)
:
Promise
<
void
>
Parameters
p:
PortablePath
cb:
function
(
)
:
PortablePath
|
void
Returns
PortablePath
|
void
Returns
Promise
<
void
>
Abstract
read
File
Promise
read
File
Promise
(
p
:
FSPath
<
PortablePath
>
, encoding
?:
undefined
|
null
)
:
Promise
<
Buffer
>
read
File
Promise
(
p
:
FSPath
<
PortablePath
>
, encoding
:
BufferEncoding
)
:
Promise
<
string
>
read
File
Promise
(
p
:
FSPath
<
PortablePath
>
, encoding
?:
BufferEncoding
|
null
)
:
Promise
<
Buffer
|
string
>
Parameters
p:
FSPath
<
PortablePath
>
Optional
encoding:
undefined
|
null
Returns
Promise
<
Buffer
>
Parameters
p:
FSPath
<
PortablePath
>
encoding:
BufferEncoding
Returns
Promise
<
string
>
Parameters
p:
FSPath
<
PortablePath
>
Optional
encoding:
BufferEncoding
|
null
Returns
Promise
<
Buffer
|
string
>
Abstract
read
File
Sync
read
File
Sync
(
p
:
FSPath
<
PortablePath
>
, encoding
?:
undefined
|
null
)
:
Buffer
read
File
Sync
(
p
:
FSPath
<
PortablePath
>
, encoding
:
BufferEncoding
)
:
string
read
File
Sync
(
p
:
FSPath
<
PortablePath
>
, encoding
?:
BufferEncoding
|
null
)
:
Buffer
|
string
Parameters
p:
FSPath
<
PortablePath
>
Optional
encoding:
undefined
|
null
Returns
Buffer
Parameters
p:
FSPath
<
PortablePath
>
encoding:
BufferEncoding
Returns
string
Parameters
p:
FSPath
<
PortablePath
>
Optional
encoding:
BufferEncoding
|
null
Returns
Buffer
|
string
read
Json
Promise
read
Json
Promise
(
p
:
PortablePath
)
:
Promise
<
any
>
Parameters
p:
PortablePath
Returns
Promise
<
any
>
read
Json
Sync
read
Json
Sync
(
p
:
PortablePath
)
:
any
Parameters
p:
PortablePath
Returns
any
Abstract
read
Promise
read
Promise
(
fd
:
number
, buffer
:
Buffer
, offset
?:
undefined
|
number
, length
?:
undefined
|
number
, position
?:
number
|
null
)
:
Promise
<
number
>
Parameters
fd:
number
buffer:
Buffer
Optional
offset:
undefined
|
number
Optional
length:
undefined
|
number
Optional
position:
number
|
null
Returns
Promise
<
number
>
Abstract
read
Sync
read
Sync
(
fd
:
number
, buffer
:
Buffer
, offset
?:
undefined
|
number
, length
?:
undefined
|
number
, position
?:
number
|
null
)
:
number
Parameters
fd:
number
buffer:
Buffer
Optional
offset:
undefined
|
number
Optional
length:
undefined
|
number
Optional
position:
number
|
null
Returns
number
Abstract
readdir
Promise
readdir
Promise
(
p
:
PortablePath
)
:
Promise
<
Array
<
Filename
>
>
readdir
Promise
(
p
:
PortablePath
, opts
:
object
|
null
)
:
Promise
<
Array
<
Filename
>
>
readdir
Promise
(
p
:
PortablePath
, opts
:
object
)
:
Promise
<
Array
<
Dirent
>
>
readdir
Promise
(
p
:
PortablePath
, opts
:
object
)
:
Promise
<
Array
<
Filename
>
|
Array
<
Dirent
>
>
Parameters
p:
PortablePath
Returns
Promise
<
Array
<
Filename
>
>
Parameters
p:
PortablePath
opts:
object
|
null
Returns
Promise
<
Array
<
Filename
>
>
Parameters
p:
PortablePath
opts:
object
with
File
Types
:
true
Returns
Promise
<
Array
<
Dirent
>
>
Parameters
p:
PortablePath
opts:
object
with
File
Types
:
boolean
Returns
Promise
<
Array
<
Filename
>
|
Array
<
Dirent
>
>
Abstract
readdir
Sync
readdir
Sync
(
p
:
PortablePath
)
:
Array
<
Filename
>
readdir
Sync
(
p
:
PortablePath
, opts
:
object
|
null
)
:
Array
<
Filename
>
readdir
Sync
(
p
:
PortablePath
, opts
:
object
)
:
Array
<
Dirent
>
readdir
Sync
(
p
:
PortablePath
, opts
:
object
)
:
Array
<
Filename
>
|
Array
<
Dirent
>
Parameters
p:
PortablePath
Returns
Array
<
Filename
>
Parameters
p:
PortablePath
opts:
object
|
null
Returns
Array
<
Filename
>
Parameters
p:
PortablePath
opts:
object
with
File
Types
:
true
Returns
Array
<
Dirent
>
Parameters
p:
PortablePath
opts:
object
with
File
Types
:
boolean
Returns
Array
<
Filename
>
|
Array
<
Dirent
>
Abstract
readlink
Promise
readlink
Promise
(
p
:
PortablePath
)
:
Promise
<
PortablePath
>
Parameters
p:
PortablePath
Returns
Promise
<
PortablePath
>
Abstract
readlink
Sync
readlink
Sync
(
p
:
PortablePath
)
:
PortablePath
Parameters
p:
PortablePath
Returns
PortablePath
Abstract
realpath
Promise
realpath
Promise
(
p
:
PortablePath
)
:
Promise
<
PortablePath
>
Parameters
p:
PortablePath
Returns
Promise
<
PortablePath
>
Abstract
realpath
Sync
realpath
Sync
(
p
:
PortablePath
)
:
PortablePath
Parameters
p:
PortablePath
Returns
PortablePath
remove
Promise
remove
Promise
(
p
:
PortablePath
, __namedParameters
?:
object
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Default value
__namedParameters:
object
= {}
max
Retries
:
number
recursive
:
boolean
Returns
Promise
<
void
>
remove
Sync
remove
Sync
(
p
:
PortablePath
, __namedParameters
?:
object
)
:
void
Parameters
p:
PortablePath
Default value
__namedParameters:
object
= {}
recursive
:
boolean
Returns
void
Abstract
rename
Promise
rename
Promise
(
oldP
:
PortablePath
, newP
:
PortablePath
)
:
Promise
<
void
>
Parameters
oldP:
PortablePath
newP:
PortablePath
Returns
Promise
<
void
>
Abstract
rename
Sync
rename
Sync
(
oldP
:
PortablePath
, newP
:
PortablePath
)
:
void
Parameters
oldP:
PortablePath
newP:
PortablePath
Returns
void
Abstract
resolve
resolve
(
p
:
PortablePath
)
:
PortablePath
Parameters
p:
PortablePath
Returns
PortablePath
Abstract
rmdir
Promise
rmdir
Promise
(
p
:
PortablePath
, opts
?:
RmdirOptions
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Optional
opts:
RmdirOptions
Returns
Promise
<
void
>
Abstract
rmdir
Sync
rmdir
Sync
(
p
:
PortablePath
, opts
?:
RmdirOptions
)
:
void
Parameters
p:
PortablePath
Optional
opts:
RmdirOptions
Returns
void
Optional
save
And
Close
save
And
Close
(
)
:
void
Returns
void
Abstract
stat
Promise
stat
Promise
(
p
:
PortablePath
)
:
Promise
<
Stats
>
stat
Promise
(
p
:
PortablePath
, opts
:
StatOptions
&
object
|
undefined
)
:
Promise
<
Stats
>
stat
Promise
(
p
:
PortablePath
, opts
:
StatOptions
&
object
)
:
Promise
<
BigIntStats
>
stat
Promise
(
p
:
PortablePath
, opts
?:
StatOptions
)
:
Promise
<
Stats
|
BigIntStats
>
Parameters
p:
PortablePath
Returns
Promise
<
Stats
>
Parameters
p:
PortablePath
opts:
StatOptions
&
object
|
undefined
Returns
Promise
<
Stats
>
Parameters
p:
PortablePath
opts:
StatOptions
&
object
Returns
Promise
<
BigIntStats
>
Parameters
p:
PortablePath
Optional
opts:
StatOptions
Returns
Promise
<
Stats
|
BigIntStats
>
Abstract
stat
Sync
stat
Sync
(
p
:
PortablePath
)
:
Stats
stat
Sync
(
p
:
PortablePath
, opts
?:
StatSyncOptions
&
object
)
:
Stats
|
undefined
stat
Sync
(
p
:
PortablePath
, opts
:
StatSyncOptions
&
object
)
:
BigIntStats
|
undefined
stat
Sync
(
p
:
PortablePath
, opts
?:
StatSyncOptions
&
object
)
:
Stats
stat
Sync
(
p
:
PortablePath
, opts
:
StatSyncOptions
&
object
)
:
BigIntStats
stat
Sync
(
p
:
PortablePath
, opts
:
StatSyncOptions
&
object
)
:
Stats
|
BigIntStats
stat
Sync
(
p
:
PortablePath
, opts
?:
StatSyncOptions
)
:
Stats
|
BigIntStats
|
undefined
Parameters
p:
PortablePath
Returns
Stats
Parameters
p:
PortablePath
Optional
opts:
StatSyncOptions
&
object
Returns
Stats
|
undefined
Parameters
p:
PortablePath
opts:
StatSyncOptions
&
object
Returns
BigIntStats
|
undefined
Parameters
p:
PortablePath
Optional
opts:
StatSyncOptions
&
object
Returns
Stats
Parameters
p:
PortablePath
opts:
StatSyncOptions
&
object
Returns
BigIntStats
Parameters
p:
PortablePath
opts:
StatSyncOptions
&
object
Returns
Stats
|
BigIntStats
Parameters
p:
PortablePath
Optional
opts:
StatSyncOptions
Returns
Stats
|
BigIntStats
|
undefined
Abstract
symlink
Promise
symlink
Promise
(
target
:
PortablePath
, p
:
PortablePath
, type
?:
SymlinkType
)
:
Promise
<
void
>
Parameters
target:
PortablePath
p:
PortablePath
Optional
type:
SymlinkType
Returns
Promise
<
void
>
Abstract
symlink
Sync
symlink
Sync
(
target
:
PortablePath
, p
:
PortablePath
, type
?:
SymlinkType
)
:
void
Parameters
target:
PortablePath
p:
PortablePath
Optional
type:
SymlinkType
Returns
void
Abstract
truncate
Promise
truncate
Promise
(
p
:
PortablePath
, len
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Optional
len:
undefined
|
number
Returns
Promise
<
void
>
Abstract
truncate
Sync
truncate
Sync
(
p
:
PortablePath
, len
?:
undefined
|
number
)
:
void
Parameters
p:
PortablePath
Optional
len:
undefined
|
number
Returns
void
Abstract
unlink
Promise
unlink
Promise
(
p
:
PortablePath
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Returns
Promise
<
void
>
Abstract
unlink
Sync
unlink
Sync
(
p
:
PortablePath
)
:
void
Parameters
p:
PortablePath
Returns
void
Abstract
unwatch
File
unwatch
File
(
p
:
PortablePath
, cb
?:
WatchFileCallback
)
:
void
Parameters
p:
PortablePath
Optional
cb:
WatchFileCallback
Returns
void
Abstract
utimes
Promise
utimes
Promise
(
p
:
PortablePath
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
Promise
<
void
>
Abstract
utimes
Sync
utimes
Sync
(
p
:
PortablePath
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
void
Parameters
p:
PortablePath
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
void
Abstract
watch
watch
(
p
:
PortablePath
, cb
?:
WatchCallback
)
:
Watcher
watch
(
p
:
PortablePath
, opts
:
WatchOptions
, cb
?:
WatchCallback
)
:
Watcher
Parameters
p:
PortablePath
Optional
cb:
WatchCallback
Returns
Watcher
Parameters
p:
PortablePath
opts:
WatchOptions
Optional
cb:
WatchCallback
Returns
Watcher
Abstract
watch
File
watch
File
(
p
:
PortablePath
, cb
:
WatchFileCallback
)
:
StatWatcher
watch
File
(
p
:
PortablePath
, opts
:
WatchFileOptions
, cb
:
WatchFileCallback
)
:
StatWatcher
Parameters
p:
PortablePath
cb:
WatchFileCallback
Returns
StatWatcher
Parameters
p:
PortablePath
opts:
WatchFileOptions
cb:
WatchFileCallback
Returns
StatWatcher
Abstract
write
File
Promise
write
File
Promise
(
p
:
FSPath
<
PortablePath
>
, content
:
string
|
NodeJS.ArrayBufferView
, opts
?:
WriteFileOptions
)
:
Promise
<
void
>
Parameters
p:
FSPath
<
PortablePath
>
content:
string
|
NodeJS.ArrayBufferView
Optional
opts:
WriteFileOptions
Returns
Promise
<
void
>
Abstract
write
File
Sync
write
File
Sync
(
p
:
FSPath
<
PortablePath
>
, content
:
string
|
NodeJS.ArrayBufferView
, opts
?:
WriteFileOptions
)
:
void
Parameters
p:
FSPath
<
PortablePath
>
content:
string
|
NodeJS.ArrayBufferView
Optional
opts:
WriteFileOptions
Returns
void
write
Json
Promise
write
Json
Promise
(
p
:
PortablePath
, data
:
any
)
:
Promise
<
void
>
Parameters
p:
PortablePath
data:
any
Returns
Promise
<
void
>
write
Json
Sync
write
Json
Sync
(
p
:
PortablePath
, data
:
any
)
:
void
Parameters
p:
PortablePath
data:
any
Returns
void
Abstract
write
Promise
write
Promise
(
fd
:
number
, buffer
:
Buffer
, offset
?:
undefined
|
number
, length
?:
undefined
|
number
, position
?:
undefined
|
number
)
:
Promise
<
number
>
write
Promise
(
fd
:
number
, buffer
:
string
, position
?:
undefined
|
number
)
:
Promise
<
number
>
Parameters
fd:
number
buffer:
Buffer
Optional
offset:
undefined
|
number
Optional
length:
undefined
|
number
Optional
position:
undefined
|
number
Returns
Promise
<
number
>
Parameters
fd:
number
buffer:
string
Optional
position:
undefined
|
number
Returns
Promise
<
number
>
Abstract
write
Sync
write
Sync
(
fd
:
number
, buffer
:
Buffer
, offset
?:
undefined
|
number
, length
?:
undefined
|
number
, position
?:
undefined
|
number
)
:
number
write
Sync
(
fd
:
number
, buffer
:
string
, position
?:
undefined
|
number
)
:
number
Parameters
fd:
number
buffer:
Buffer
Optional
offset:
undefined
|
number
Optional
length:
undefined
|
number
Optional
position:
undefined
|
number
Returns
number
Parameters
fd:
number
buffer:
string
Optional
position:
undefined
|
number
Returns
number
yarnpkg-
fslib
MountableFS
constructor
path
Utils
access
Promise
access
Sync
append
File
Promise
append
File
Sync
change
File
Promise
change
File
Sync
checksum
File
Promise
chmod
Promise
chmod
Sync
chown
Promise
chown
Sync
close
Promise
close
Sync
copy
File
Promise
copy
File
Sync
copy
Promise
copy
Sync
create
Read
Stream
create
Write
Stream
discard
And
Close
exists
Promise
exists
Sync
fchmod
Promise
fchmod
Sync
fchown
Promise
fchown
Sync
fstat
Promise
fstat
Sync
ftruncate
Promise
ftruncate
Sync
gen
Traverse
Promise
get
Extract
Hint
get
Real
Path
has
Open
File
Handles
link
Promise
link
Sync
lock
Promise
lstat
Promise
lstat
Sync
lutimes
Promise
lutimes
Sync
mkdir
Promise
mkdir
Sync
mkdirp
Promise
mkdirp
Sync
move
Promise
move
Sync
open
Promise
open
Sync
opendir
Promise
opendir
Sync
preserve
Time
Promise
preserve
Time
Sync
read
File
Promise
read
File
Sync
read
Json
Promise
read
Json
Sync
read
Promise
read
Sync
readdir
Promise
readdir
Sync
readlink
Promise
readlink
Sync
realpath
Promise
realpath
Sync
remove
Promise
remove
Sync
rename
Promise
rename
Sync
resolve
rmdir
Promise
rmdir
Sync
save
And
Close
stat
Promise
stat
Sync
symlink
Promise
symlink
Sync
truncate
Promise
truncate
Sync
unlink
Promise
unlink
Sync
unwatch
File
utimes
Promise
utimes
Sync
watch
watch
File
write
File
Promise
write
File
Sync
write
Json
Promise
write
Json
Sync
write
Promise
write
Sync
Generated using
TypeDoc
Prefer using
copyPromise
instead