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
CwdFS
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"}}
Class CwdFS
Hierarchy
ProxiedFS
<
PortablePath
,
PortablePath
>
CwdFS
Constructors
constructor
Properties
baseFs
pathUtils
target
Methods
accessPromise
accessSync
appendFilePromise
appendFileSync
changeFilePromise
changeFileSync
checksumFilePromise
chmodPromise
chmodSync
chownPromise
chownSync
closePromise
closeSync
copyFilePromise
copyFileSync
copyPromise
copySync
createReadStream
createWriteStream
existsPromise
existsSync
fchmodPromise
fchmodSync
fchownPromise
fchownSync
fstatPromise
fstatSync
ftruncatePromise
ftruncateSync
genTraversePromise
getExtractHint
getRealPath
linkPromise
linkSync
lockPromise
lstatPromise
lstatSync
lutimesPromise
lutimesSync
mapFromBase
mapToBase
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
statPromise
statSync
symlinkPromise
symlinkSync
truncatePromise
truncateSync
unlinkPromise
unlinkSync
unwatchFile
utimesPromise
utimesSync
watch
watchFile
writeFilePromise
writeFileSync
writeJsonPromise
writeJsonSync
writePromise
writeSync
Constructors
constructor
new
CwdFS
(
target
:
PortablePath
, __namedParameters
?:
object
)
:
CwdFS
Parameters
target:
PortablePath
Default value
__namedParameters:
object
= {}
base
Fs
:
FakeFS
<
string
&
object
>
Returns
CwdFS
Properties
Protected
base
Fs
base
Fs
:
FakeFS
<
PortablePath
>
path
Utils
path
Utils
:
PathUtils
<
PortablePath
>
Private
target
target
:
PortablePath
Methods
access
Promise
access
Promise
(
p
:
PortablePath
, mode
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Optional
mode:
undefined
|
number
Returns
Promise
<
void
>
access
Sync
access
Sync
(
p
:
PortablePath
, mode
?:
undefined
|
number
)
:
void
Parameters
p:
PortablePath
Optional
mode:
undefined
|
number
Returns
void
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
>
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
>
chmod
Promise
chmod
Promise
(
p
:
PortablePath
, mask
:
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
mask:
number
Returns
Promise
<
void
>
chmod
Sync
chmod
Sync
(
p
:
PortablePath
, mask
:
number
)
:
void
Parameters
p:
PortablePath
mask:
number
Returns
void
chown
Promise
chown
Promise
(
p
:
PortablePath
, uid
:
number
, gid
:
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
uid:
number
gid:
number
Returns
Promise
<
void
>
chown
Sync
chown
Sync
(
p
:
PortablePath
, uid
:
number
, gid
:
number
)
:
void
Parameters
p:
PortablePath
uid:
number
gid:
number
Returns
void
close
Promise
close
Promise
(
fd
:
number
)
:
Promise
<
void
>
Parameters
fd:
number
Returns
Promise
<
void
>
close
Sync
close
Sync
(
fd
:
number
)
:
void
Parameters
fd:
number
Returns
void
copy
File
Promise
copy
File
Promise
(
sourceP
:
PortablePath
, destP
:
PortablePath
, flags
?:
number
)
:
Promise
<
void
>
Parameters
sourceP:
PortablePath
destP:
PortablePath
Default value
flags:
number
= 0
Returns
Promise
<
void
>
copy
File
Sync
copy
File
Sync
(
sourceP
:
PortablePath
, destP
:
PortablePath
, flags
?:
number
)
:
void
Parameters
sourceP:
PortablePath
destP:
PortablePath
Default value
flags:
number
= 0
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
create
Read
Stream
create
Read
Stream
(
p
:
PortablePath
|
null
, opts
?:
CreateReadStreamOptions
)
:
ReadStream
Parameters
p:
PortablePath
|
null
Optional
opts:
CreateReadStreamOptions
Returns
ReadStream
create
Write
Stream
create
Write
Stream
(
p
:
PortablePath
|
null
, opts
?:
CreateWriteStreamOptions
)
:
WriteStream
Parameters
p:
PortablePath
|
null
Optional
opts:
CreateWriteStreamOptions
Returns
WriteStream
exists
Promise
exists
Promise
(
p
:
PortablePath
)
:
Promise
<
boolean
>
Parameters
p:
PortablePath
Returns
Promise
<
boolean
>
exists
Sync
exists
Sync
(
p
:
PortablePath
)
:
boolean
Parameters
p:
PortablePath
Returns
boolean
fchmod
Promise
fchmod
Promise
(
fd
:
number
, mask
:
number
)
:
Promise
<
void
>
Parameters
fd:
number
mask:
number
Returns
Promise
<
void
>
fchmod
Sync
fchmod
Sync
(
fd
:
number
, mask
:
number
)
:
void
Parameters
fd:
number
mask:
number
Returns
void
fchown
Promise
fchown
Promise
(
fd
:
number
, uid
:
number
, gid
:
number
)
:
Promise
<
void
>
Parameters
fd:
number
uid:
number
gid:
number
Returns
Promise
<
void
>
fchown
Sync
fchown
Sync
(
fd
:
number
, uid
:
number
, gid
:
number
)
:
void
Parameters
fd:
number
uid:
number
gid:
number
Returns
void
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
>
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
ftruncate
Promise
ftruncate
Promise
(
fd
:
number
, len
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
fd:
number
Optional
len:
undefined
|
number
Returns
Promise
<
void
>
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
>
get
Extract
Hint
get
Extract
Hint
(
hints
:
ExtractHintOptions
)
:
boolean
Parameters
hints:
ExtractHintOptions
Returns
boolean
get
Real
Path
get
Real
Path
(
)
:
string
&
object
Returns
string
&
object
link
Promise
link
Promise
(
existingP
:
PortablePath
, newP
:
PortablePath
)
:
Promise
<
void
>
Parameters
existingP:
PortablePath
newP:
PortablePath
Returns
Promise
<
void
>
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
>
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
>
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
>
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
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
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
>
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
map
From
Base
map
From
Base
(
path
:
PortablePath
)
:
string
&
object
Parameters
path:
PortablePath
Returns
string
&
object
map
ToBase
map
ToBase
(
path
:
PortablePath
)
:
string
&
object
Parameters
path:
PortablePath
Returns
string
&
object
mkdir
Promise
mkdir
Promise
(
p
:
PortablePath
, opts
?:
MkdirOptions
)
:
Promise
<
undefined
|
string
>
Parameters
p:
PortablePath
Optional
opts:
MkdirOptions
Returns
Promise
<
undefined
|
string
>
mkdir
Sync
mkdir
Sync
(
p
:
PortablePath
, opts
?:
MkdirOptions
)
:
undefined
|
string
Parameters
p:
PortablePath
Optional
opts:
MkdirOptions
Returns
undefined
|
string
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
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
>
open
Sync
open
Sync
(
p
:
PortablePath
, flags
:
string
, mode
?:
undefined
|
number
)
:
number
Parameters
p:
PortablePath
flags:
string
Optional
mode:
undefined
|
number
Returns
number
opendir
Promise
opendir
Promise
(
p
:
PortablePath
, opts
?:
OpendirOptions
)
:
Promise
<
Dir
<
PortablePath
>
>
Parameters
p:
PortablePath
Optional
opts:
OpendirOptions
Returns
Promise
<
Dir
<
PortablePath
>
>
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
>
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
>
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
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
>
read
Sync
read
Sync
(
fd
:
number
, buffer
:
Buffer
, offset
:
number
, length
:
number
, position
:
number
)
:
number
Parameters
fd:
number
buffer:
Buffer
offset:
number
length:
number
position:
number
Returns
number
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
>
>
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
>
readlink
Promise
readlink
Promise
(
p
:
PortablePath
)
:
Promise
<
P
>
Parameters
p:
PortablePath
Returns
Promise
<
P
>
readlink
Sync
readlink
Sync
(
p
:
PortablePath
)
:
P
Parameters
p:
PortablePath
Returns
P
realpath
Promise
realpath
Promise
(
p
:
PortablePath
)
:
Promise
<
P
>
Parameters
p:
PortablePath
Returns
Promise
<
P
>
realpath
Sync
realpath
Sync
(
p
:
PortablePath
)
:
P
Parameters
p:
PortablePath
Returns
P
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
rename
Promise
rename
Promise
(
oldP
:
PortablePath
, newP
:
PortablePath
)
:
Promise
<
void
>
Parameters
oldP:
PortablePath
newP:
PortablePath
Returns
Promise
<
void
>
rename
Sync
rename
Sync
(
oldP
:
PortablePath
, newP
:
PortablePath
)
:
void
Parameters
oldP:
PortablePath
newP:
PortablePath
Returns
void
resolve
resolve
(
p
:
PortablePath
)
:
string
&
object
Parameters
p:
PortablePath
Returns
string
&
object
rmdir
Promise
rmdir
Promise
(
p
:
PortablePath
, opts
?:
RmdirOptions
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Optional
opts:
RmdirOptions
Returns
Promise
<
void
>
rmdir
Sync
rmdir
Sync
(
p
:
PortablePath
, opts
?:
RmdirOptions
)
:
void
Parameters
p:
PortablePath
Optional
opts:
RmdirOptions
Returns
void
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
>
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
>
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
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
symlink
Promise
symlink
Promise
(
target
:
PortablePath
, p
:
PortablePath
, type
?:
SymlinkType
)
:
Promise
<
void
>
Parameters
target:
PortablePath
p:
PortablePath
Optional
type:
SymlinkType
Returns
Promise
<
void
>
symlink
Sync
symlink
Sync
(
target
:
PortablePath
, p
:
PortablePath
, type
?:
SymlinkType
)
:
void
Parameters
target:
PortablePath
p:
PortablePath
Optional
type:
SymlinkType
Returns
void
truncate
Promise
truncate
Promise
(
p
:
PortablePath
, len
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Optional
len:
undefined
|
number
Returns
Promise
<
void
>
truncate
Sync
truncate
Sync
(
p
:
PortablePath
, len
?:
undefined
|
number
)
:
void
Parameters
p:
PortablePath
Optional
len:
undefined
|
number
Returns
void
unlink
Promise
unlink
Promise
(
p
:
PortablePath
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Returns
Promise
<
void
>
unlink
Sync
unlink
Sync
(
p
:
PortablePath
)
:
void
Parameters
p:
PortablePath
Returns
void
unwatch
File
unwatch
File
(
p
:
PortablePath
, cb
?:
WatchFileCallback
)
:
void
Parameters
p:
PortablePath
Optional
cb:
WatchFileCallback
Returns
void
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
>
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
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
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
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
>
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
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
>
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
CwdFS
constructor
base
Fs
path
Utils
target
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
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
link
Promise
link
Sync
lock
Promise
lstat
Promise
lstat
Sync
lutimes
Promise
lutimes
Sync
map
From
Base
map
ToBase
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
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