MountableFS
Hierarchy
- FakeFS<PortablePath>
- MountableFS
Index
Properties
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
- rmPromise
- rmSync
- rmdirPromise
- rmdirSync
- saveAndClose
- statPromise
- statSync
- symlinkPromise
- symlinkSync
- truncatePromise
- truncateSync
- unlinkPromise
- unlinkSync
- unwatchFile
- utimesPromise
- utimesSync
- watch
- watchFile
- writeFilePromise
- writeFileSync
- writeJsonPromise
- writeJsonSync
- writePromise
- writeSync
Properties
publicreadonlypathUtils
Methods
abstractaccessPromise
Parameters
p: PortablePath
optionalmode: number
Returns Promise<void>
abstractaccessSync
Parameters
p: PortablePath
optionalmode: number
Returns void
abstractappendFilePromise
Parameters
p: FSPath<PortablePath>
content: string | Uint8Array
optionalopts: WriteFileOptions
Returns Promise<void>
abstractappendFileSync
Parameters
p: FSPath<PortablePath>
content: string | Uint8Array
optionalopts: WriteFileOptions
Returns void
changeFilePromise
Parameters
p: PortablePath
content: Buffer
Returns Promise<void>
changeFileSync
Parameters
p: PortablePath
content: Buffer
Returns void
checksumFilePromise
Parameters
path: PortablePath
__namedParameters: { algorithm?: string } = {}
Returns Promise<string>
abstractchmodPromise
Parameters
p: PortablePath
mask: number
Returns Promise<void>
abstractchmodSync
Parameters
p: PortablePath
mask: number
Returns void
abstractchownPromise
Parameters
p: PortablePath
uid: number
gid: number
Returns Promise<void>
abstractchownSync
Parameters
p: PortablePath
uid: number
gid: number
Returns void
abstractclosePromise
Parameters
fd: number
Returns Promise<void>
abstractcloseSync
Parameters
fd: number
Returns void
abstractcopyFilePromise
Parameters
sourceP: PortablePath
destP: PortablePath
optionalflags: number
Returns Promise<void>
abstractcopyFileSync
Parameters
sourceP: PortablePath
destP: PortablePath
optionalflags: number
Returns void
copyPromise
Parameters
destination: PortablePath
source: PortablePath
optionaloptions: { baseFs?: undefined; linkStrategy?: null | LinkStrategy<PortablePath>; overwrite?: boolean; stableSort?: boolean; stableTime?: boolean }
Returns Promise<void>
copySync
Parameters
destination: PortablePath
source: PortablePath
optionaloptions: { baseFs?: undefined; overwrite?: boolean }
Returns void
abstractcreateReadStream
Parameters
p: null | PortablePath
optionalopts: Partial<{ encoding: BufferEncoding; fd: number }>
Returns ReadStream
abstractcreateWriteStream
Parameters
p: null | PortablePath
optionalopts: Partial<{ encoding: BufferEncoding; fd: number; flags: a }>
Returns WriteStream
optionaldiscardAndClose
Returns void
abstractexistsPromise
Parameters
p: PortablePath
Returns Promise<boolean>
abstractexistsSync
Parameters
p: PortablePath
Returns boolean
abstractfchmodPromise
Parameters
fd: number
mask: number
Returns Promise<void>
abstractfchmodSync
Parameters
fd: number
mask: number
Returns void
abstractfchownPromise
Parameters
fd: number
uid: number
gid: number
Returns Promise<void>
abstractfchownSync
Parameters
fd: number
uid: number
gid: number
Returns void
abstractfstatPromise
Parameters
fd: number
Returns Promise<Stats>
abstractfstatSync
Parameters
fd: number
Returns Stats
abstractftruncatePromise
Parameters
fd: number
optionallen: number
Returns Promise<void>
abstractftruncateSync
Parameters
fd: number
optionallen: number
Returns void
genTraversePromise
Parameters
init: PortablePath
__namedParameters: { stableSort?: boolean } = {}
Returns AsyncGenerator<PortablePath, void, unknown>
abstractgetExtractHint
@deprecated: Moved to jsInstallUtils
Parameters
hints: ExtractHintOptions
Returns boolean
abstractgetRealPath
Returns PortablePath
optionalhasOpenFileHandles
Returns boolean
abstractlinkPromise
Parameters
existingP: PortablePath
newP: PortablePath
Returns Promise<void>
abstractlinkSync
Parameters
existingP: PortablePath
newP: PortablePath
Returns void
lockPromise
Type parameters
- T
Parameters
affectedPath: PortablePath
callback: () => Promise<T>
Returns Promise<T>
abstractlstatPromise
Parameters
p: PortablePath
Returns Promise<Stats>
abstractlstatSync
Parameters
p: PortablePath
Returns Stats
abstractlutimesPromise
Parameters
p: PortablePath
atime: string | number | Date
mtime: string | number | Date
Returns Promise<void>
abstractlutimesSync
Parameters
p: PortablePath
atime: string | number | Date
mtime: string | number | Date
Returns void
abstractmkdirPromise
Parameters
p: PortablePath
optionalopts: Partial<{ mode: number; recursive: boolean }>
Returns Promise<undefined | string>
abstractmkdirSync
Parameters
p: PortablePath
optionalopts: Partial<{ mode: number; recursive: boolean }>
Returns undefined | string
mkdirpPromise
Parameters
p: PortablePath
__namedParameters: { chmod?: number; utimes?: [string | number | Date, string | number | Date] } = {}
Returns Promise<undefined | string>
mkdirpSync
Parameters
p: PortablePath
__namedParameters: { chmod?: number; utimes?: [string | number | Date, string | number | Date] } = {}
Returns undefined | string
movePromise
Parameters
fromP: PortablePath
toP: PortablePath
Returns Promise<void>
moveSync
Parameters
fromP: PortablePath
toP: PortablePath
Returns void
abstractopenPromise
Parameters
p: PortablePath
flags: string
optionalmode: number
Returns Promise<number>
abstractopenSync
Parameters
p: PortablePath
flags: string
optionalmode: number
Returns number
abstractopendirPromise
Parameters
p: PortablePath
optionalopts: Partial<{ bufferSize: number; recursive: boolean }>
Returns Promise<Dir<PortablePath>>
abstractopendirSync
Parameters
p: PortablePath
optionalopts: Partial<{ bufferSize: number; recursive: boolean }>
Returns Dir<PortablePath>
preserveTimePromise
Parameters
p: PortablePath
cb: () => Promise<void | PortablePath>
Returns Promise<void>
preserveTimeSync
Parameters
p: PortablePath
cb: () => void | PortablePath
Returns Promise<void>
abstractreadFilePromise
Parameters
p: FSPath<PortablePath>
optionalencoding: null
Returns Promise<Buffer>
abstractreadFileSync
Parameters
p: FSPath<PortablePath>
optionalencoding: null
Returns Buffer
readJsonPromise
Parameters
p: PortablePath
Returns Promise<any>
readJsonSync
Parameters
p: PortablePath
Returns any
abstractreadPromise
Parameters
fd: number
buffer: Buffer
optionaloffset: number
optionallength: number
optionalposition: null | number
Returns Promise<number>
abstractreadSync
Parameters
fd: number
buffer: Buffer
optionaloffset: number
optionallength: number
optionalposition: null | number
Returns number
abstractreaddirPromise
Parameters
p: PortablePath
optionalopts: null
Returns Promise<Filename[]>
abstractreaddirSync
Parameters
p: PortablePath
optionalopts: null
Returns Filename[]
abstractreadlinkPromise
Parameters
p: PortablePath
Returns Promise<PortablePath>
abstractreadlinkSync
Parameters
p: PortablePath
Returns PortablePath
abstractrealpathPromise
Parameters
p: PortablePath
Returns Promise<PortablePath>
abstractrealpathSync
Parameters
p: PortablePath
Returns PortablePath
removePromise
Parameters
p: PortablePath
__namedParameters: { maxRetries?: number; recursive?: boolean } = {}
Returns Promise<void>
removeSync
Parameters
p: PortablePath
__namedParameters: { recursive?: boolean } = {}
Returns void
abstractrenamePromise
Parameters
oldP: PortablePath
newP: PortablePath
Returns Promise<void>
abstractrenameSync
Parameters
oldP: PortablePath
newP: PortablePath
Returns void
abstractresolve
Parameters
p: PortablePath
Returns PortablePath
abstractrmPromise
Parameters
p: PortablePath
optionalopts: Partial<{ force: boolean; maxRetries: number; recursive: boolean; retryDelay: number }>
Returns Promise<void>
abstractrmSync
Parameters
p: PortablePath
optionalopts: Partial<{ force: boolean; maxRetries: number; recursive: boolean; retryDelay: number }>
Returns void
abstractrmdirPromise
Parameters
p: PortablePath
optionalopts: Partial<{ maxRetries: number; recursive: boolean; retryDelay: number }>
Returns Promise<void>
abstractrmdirSync
Parameters
p: PortablePath
optionalopts: Partial<{ maxRetries: number; recursive: boolean; retryDelay: number }>
Returns void
optionalsaveAndClose
Returns void
abstractstatPromise
Parameters
p: PortablePath
Returns Promise<Stats>
abstractstatSync
Parameters
p: PortablePath
Returns Stats
abstractsymlinkPromise
Parameters
target: PortablePath
p: PortablePath
optionaltype: SymlinkType
Returns Promise<void>
abstractsymlinkSync
Parameters
target: PortablePath
p: PortablePath
optionaltype: SymlinkType
Returns void
abstracttruncatePromise
Parameters
p: PortablePath
optionallen: number
Returns Promise<void>
abstracttruncateSync
Parameters
p: PortablePath
optionallen: number
Returns void
abstractunlinkPromise
Parameters
p: PortablePath
Returns Promise<void>
abstractunlinkSync
Parameters
p: PortablePath
Returns void
abstractunwatchFile
Parameters
p: PortablePath
optionalcb: WatchFileCallback
Returns void
abstractutimesPromise
Parameters
p: PortablePath
atime: string | number | Date
mtime: string | number | Date
Returns Promise<void>
abstractutimesSync
Parameters
p: PortablePath
atime: string | number | Date
mtime: string | number | Date
Returns void
abstractwatch
Parameters
p: PortablePath
optionalcb: WatchCallback
Returns Watcher
abstractwatchFile
Parameters
Returns StatWatcher
abstractwriteFilePromise
Parameters
p: FSPath<PortablePath>
content: string | ArrayBufferView
optionalopts: WriteFileOptions
Returns Promise<void>
abstractwriteFileSync
Parameters
p: FSPath<PortablePath>
content: string | ArrayBufferView
optionalopts: WriteFileOptions
Returns void
writeJsonPromise
Parameters
p: PortablePath
data: any
__namedParameters: { compact?: boolean } = {}
Returns Promise<void>
writeJsonSync
Parameters
p: PortablePath
data: any
__namedParameters: { compact?: boolean } = {}
Returns void
abstractwritePromise
Parameters
fd: number
buffer: Buffer
optionaloffset: number
optionallength: number
optionalposition: number
Returns Promise<number>
abstractwriteSync
Parameters
fd: number
buffer: Buffer
optionaloffset: number
optionallength: number
optionalposition: number
Returns number
Prefer using
copyPromise
instead