CwdFS
Hierarchy
- ProxiedFS<PortablePath, PortablePath>
- CwdFS
Index
Constructors
Properties
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
- rmPromise
- rmSync
- rmdirPromise
- rmdirSync
- statPromise
- statSync
- symlinkPromise
- symlinkSync
- truncatePromise
- truncateSync
- unlinkPromise
- unlinkSync
- unwatchFile
- utimesPromise
- utimesSync
- watch
- watchFile
- writeFilePromise
- writeFileSync
- writeJsonPromise
- writeJsonSync
- writePromise
- writeSync
Constructors
constructor
Parameters
target: PortablePath
__namedParameters: CwdFSOptions = {}
Returns CwdFS
Properties
publicreadonlypathUtils
Methods
accessPromise
Parameters
p: PortablePath
optionalmode: number
Returns Promise<void>
accessSync
Parameters
p: PortablePath
optionalmode: number
Returns void
appendFilePromise
Parameters
p: FSPath<PortablePath>
content: string | Uint8Array
optionalopts: WriteFileOptions
Returns Promise<void>
appendFileSync
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>
chmodPromise
Parameters
p: PortablePath
mask: number
Returns Promise<void>
chmodSync
Parameters
p: PortablePath
mask: number
Returns void
chownPromise
Parameters
p: PortablePath
uid: number
gid: number
Returns Promise<void>
chownSync
Parameters
p: PortablePath
uid: number
gid: number
Returns void
closePromise
Parameters
fd: number
Returns Promise<void>
closeSync
Parameters
fd: number
Returns void
copyFilePromise
Parameters
sourceP: PortablePath
destP: PortablePath
flags: number = 0
Returns Promise<void>
copyFileSync
Parameters
sourceP: PortablePath
destP: PortablePath
flags: number = 0
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
createReadStream
Parameters
p: null | PortablePath
optionalopts: Partial<{ encoding: BufferEncoding; fd: number }>
Returns ReadStream
createWriteStream
Parameters
p: null | PortablePath
optionalopts: Partial<{ encoding: BufferEncoding; fd: number; flags: a }>
Returns WriteStream
existsPromise
Parameters
p: PortablePath
Returns Promise<boolean>
existsSync
Parameters
p: PortablePath
Returns boolean
fchmodPromise
Parameters
fd: number
mask: number
Returns Promise<void>
fchmodSync
Parameters
fd: number
mask: number
Returns void
fchownPromise
Parameters
fd: number
uid: number
gid: number
Returns Promise<void>
fchownSync
Parameters
fd: number
uid: number
gid: number
Returns void
fstatPromise
Parameters
fd: number
Returns Promise<Stats>
fstatSync
Parameters
fd: number
Returns Stats
ftruncatePromise
Parameters
fd: number
optionallen: number
Returns Promise<void>
ftruncateSync
Parameters
fd: number
optionallen: number
Returns void
genTraversePromise
Parameters
init: PortablePath
__namedParameters: { stableSort?: boolean } = {}
Returns AsyncGenerator<PortablePath, void, unknown>
getExtractHint
@deprecated: Moved to jsInstallUtils
Parameters
hints: ExtractHintOptions
Returns boolean
getRealPath
Returns PortablePath
linkPromise
Parameters
existingP: PortablePath
newP: PortablePath
Returns Promise<void>
linkSync
Parameters
existingP: PortablePath
newP: PortablePath
Returns void
lockPromise
Type parameters
- T
Parameters
affectedPath: PortablePath
callback: () => Promise<T>
Returns Promise<T>
lstatPromise
Parameters
p: PortablePath
Returns Promise<Stats>
lstatSync
Parameters
p: PortablePath
Returns Stats
lutimesPromise
Parameters
p: PortablePath
atime: string | number | Date
mtime: string | number | Date
Returns Promise<void>
lutimesSync
Parameters
p: PortablePath
atime: string | number | Date
mtime: string | number | Date
Returns void
mapFromBase
Parameters
path: PortablePath
Returns PortablePath
mapToBase
Parameters
path: PortablePath
Returns PortablePath
mkdirPromise
Parameters
p: PortablePath
optionalopts: Partial<{ mode: number; recursive: boolean }>
Returns Promise<undefined | string>
mkdirSync
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
openPromise
Parameters
p: PortablePath
flags: string
optionalmode: number
Returns Promise<number>
openSync
Parameters
p: PortablePath
flags: string
optionalmode: number
Returns number
opendirPromise
Parameters
p: PortablePath
optionalopts: Partial<{ bufferSize: number; recursive: boolean }>
Returns Promise<Dir<PortablePath>>
opendirSync
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>
readFilePromise
Parameters
p: FSPath<PortablePath>
optionalencoding: null
Returns Promise<Buffer>
readFileSync
Parameters
p: FSPath<PortablePath>
optionalencoding: null
Returns Buffer
readJsonPromise
Parameters
p: PortablePath
Returns Promise<any>
readJsonSync
Parameters
p: PortablePath
Returns any
readPromise
Parameters
fd: number
buffer: Buffer
optionaloffset: number
optionallength: number
optionalposition: null | number
Returns Promise<number>
readSync
Parameters
fd: number
buffer: Buffer
offset: number
length: number
position: number
Returns number
readdirPromise
Parameters
p: PortablePath
optionalopts: null
Returns Promise<Filename[]>
readdirSync
Parameters
p: PortablePath
optionalopts: null
Returns Filename[]
readlinkPromise
Parameters
p: PortablePath
Returns Promise<PortablePath>
readlinkSync
Parameters
p: PortablePath
Returns PortablePath
realpathPromise
Parameters
p: PortablePath
Returns Promise<PortablePath>
realpathSync
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
renamePromise
Parameters
oldP: PortablePath
newP: PortablePath
Returns Promise<void>
renameSync
Parameters
oldP: PortablePath
newP: PortablePath
Returns void
resolve
Parameters
p: PortablePath
Returns PortablePath
rmPromise
Parameters
p: PortablePath
optionalopts: Partial<{ force: boolean; maxRetries: number; recursive: boolean; retryDelay: number }>
Returns Promise<void>
rmSync
Parameters
p: PortablePath
optionalopts: Partial<{ force: boolean; maxRetries: number; recursive: boolean; retryDelay: number }>
Returns void
rmdirPromise
Parameters
p: PortablePath
optionalopts: Partial<{ maxRetries: number; recursive: boolean; retryDelay: number }>
Returns Promise<void>
rmdirSync
Parameters
p: PortablePath
optionalopts: Partial<{ maxRetries: number; recursive: boolean; retryDelay: number }>
Returns void
statPromise
Parameters
p: PortablePath
Returns Promise<Stats>
statSync
Parameters
p: PortablePath
Returns Stats
symlinkPromise
Parameters
target: PortablePath
p: PortablePath
optionaltype: SymlinkType
Returns Promise<void>
symlinkSync
Parameters
target: PortablePath
p: PortablePath
optionaltype: SymlinkType
Returns void
truncatePromise
Parameters
p: PortablePath
optionallen: number
Returns Promise<void>
truncateSync
Parameters
p: PortablePath
optionallen: number
Returns void
unlinkPromise
Parameters
p: PortablePath
Returns Promise<void>
unlinkSync
Parameters
p: PortablePath
Returns void
unwatchFile
Parameters
p: PortablePath
optionalcb: WatchFileCallback
Returns void
utimesPromise
Parameters
p: PortablePath
atime: string | number | Date
mtime: string | number | Date
Returns Promise<void>
utimesSync
Parameters
p: PortablePath
atime: string | number | Date
mtime: string | number | Date
Returns void
watch
Parameters
p: PortablePath
optionalcb: WatchCallback
Returns Watcher
watchFile
Parameters
Returns StatWatcher
writeFilePromise
Parameters
p: FSPath<PortablePath>
content: string | ArrayBufferView
optionalopts: WriteFileOptions
Returns Promise<void>
writeFileSync
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
writePromise
Parameters
fd: number
buffer: Buffer
optionaloffset: number
optionallength: number
optionalposition: number
Returns Promise<number>
writeSync
Parameters
fd: number
buffer: Buffer
optionaloffset: number
optionallength: number
optionalposition: number
Returns number
Prefer using
copyPromise
instead