Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ZipOpenFS

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new ZipOpenFS(__namedParameters: object): ZipOpenFS

Properties

Private baseFs

Private fdMap

fdMap: Map<number, []> = new Map()

Private fileExtensions

fileExtensions: Array<string> | null

Private filter

filter: RegExp | null

Private isZip

isZip: Set<PortablePath> = new Set()

Private libzipFactory

libzipFactory: function

Type declaration

Private Optional libzipInstance

libzipInstance: Libzip

Private limitOpenFilesTimeout

limitOpenFilesTimeout: Timeout | null = null

Private maxAge

maxAge: number

Private maxOpenFiles

maxOpenFiles: number

Private nextFd

nextFd: number = 3

Private notZip

notZip: Set<PortablePath> = new Set()

pathUtils

Private readOnlyArchives

readOnlyArchives: boolean

Private realPaths

realPaths: Map<PortablePath, PortablePath> = new Map()

Private zipInstances

zipInstances: Map<string, object> | null

Accessors

Private libzip

Methods

accessPromise

  • accessPromise(p: PortablePath, mode?: undefined | number): Promise<void>

accessSync

  • accessSync(p: PortablePath, mode?: undefined | number): void

appendFilePromise

appendFileSync

changeFilePromise

changeFileSync

chmodPromise

  • chmodPromise(p: PortablePath, mask: number): Promise<void>

chmodSync

chownPromise

  • chownPromise(p: PortablePath, uid: number, gid: number): Promise<void>

chownSync

  • chownSync(p: PortablePath, uid: number, gid: number): void

closePromise

  • closePromise(fd: number): Promise<void>

closeSync

  • closeSync(fd: number): void

copyFilePromise

copyFileSync

copyPromise

  • copyPromise(destination: PortablePath, source: PortablePath, options?: undefined | object): Promise<void>
  • copyPromise<P2>(destination: PortablePath, source: P2, options: object): Promise<void>

copySync

createReadStream

createWriteStream

discardAndClose

  • discardAndClose(): void

existsPromise

existsSync

fchmodPromise

  • fchmodPromise(fd: number, mask: number): Promise<void>

fchmodSync

  • fchmodSync(fd: number, mask: number): void

fchownPromise

  • fchownPromise(fd: number, uid: number, gid: number): Promise<void>

fchownSync

  • fchownSync(fd: number, uid: number, gid: number): void

Private findZip

fstatPromise

  • fstatPromise(fd: number): Promise<Stats>
  • fstatPromise(fd: number, opts: object): Promise<BigIntStats>
  • fstatPromise(fd: number, opts?: undefined | object): Promise<BigIntStats | Stats>

fstatSync

  • fstatSync(fd: number): Stats
  • fstatSync(fd: number, opts: object): BigIntStats
  • fstatSync(fd: number, opts?: undefined | object): BigIntStats | Stats

ftruncatePromise

  • ftruncatePromise(fd: number, len?: undefined | number): Promise<void>

ftruncateSync

  • ftruncateSync(fd: number, len?: undefined | number): void

genTraversePromise

  • genTraversePromise(init: PortablePath, __namedParameters?: object): AsyncGenerator<P, void, unknown>

getExtractHint

getRealPath

  • getRealPath(): string & object

Private getZipPromise

  • getZipPromise<T>(p: PortablePath, accept: function): Promise<T>

Private getZipSync

Private limitOpenFiles

  • limitOpenFiles(max: number | null): void

linkPromise

linkSync

lockPromise

  • lockPromise<T>(affectedPath: PortablePath, callback: function): Promise<T>

lstatPromise

lstatSync

Optional lutimesPromise

  • lutimesPromise(p: PortablePath, atime: Date | string | number, mtime: Date | string | number): Promise<void>

Optional lutimesSync

  • lutimesSync(p: PortablePath, atime: Date | string | number, mtime: Date | string | number): void

Private makeCallPromise

  • makeCallPromise<T>(p: FSPath<PortablePath>, discard: function, accept: function, __namedParameters?: object): Promise<T>

Private makeCallSync

  • makeCallSync<T>(p: FSPath<PortablePath>, discard: function, accept: function, __namedParameters?: object): T

mkdirPromise

mkdirSync

mkdirpPromise

  • mkdirpPromise(p: PortablePath, __namedParameters?: object): Promise<string | undefined>

mkdirpSync

  • mkdirpSync(p: PortablePath, __namedParameters?: object): string | undefined

movePromise

moveSync

openPromise

  • openPromise(p: PortablePath, flags: string, mode?: undefined | number): Promise<number>

openSync

  • openSync(p: PortablePath, flags: string, mode?: undefined | number): number

opendirPromise

opendirSync

preserveTimePromise

  • preserveTimePromise(p: PortablePath, cb: function): Promise<void>

preserveTimeSync

  • preserveTimeSync(p: PortablePath, cb: function): Promise<void>

readFilePromise

readFileSync

readJsonPromise

readJsonSync

readPromise

  • readPromise(fd: number, buffer: Buffer, offset: number, length: number, position: number): Promise<number>

readSync

  • readSync(fd: number, buffer: Buffer, offset: number, length: number, position: number): number

readdirPromise

readdirSync

readlinkPromise

  • readlinkPromise(p: PortablePath): Promise<string & object>

readlinkSync

realpathPromise

  • realpathPromise(p: PortablePath): Promise<string & object>

realpathSync

Private remapFd

  • remapFd(zipFs: ZipFS, fd: number): number

removePromise

  • removePromise(p: PortablePath, __namedParameters?: object): Promise<void>

removeSync

  • removeSync(p: PortablePath, __namedParameters?: object): void

renamePromise

renameSync

resolve

rmdirPromise

rmdirSync

saveAndClose

  • saveAndClose(): void

statPromise

statSync

symlinkPromise

symlinkSync

truncatePromise

  • truncatePromise(p: PortablePath, len?: undefined | number): Promise<void>

truncateSync

  • truncateSync(p: PortablePath, len?: undefined | number): void

unlinkPromise

unlinkSync

unwatchFile

utimesPromise

  • utimesPromise(p: PortablePath, atime: Date | string | number, mtime: Date | string | number): Promise<void>

utimesSync

  • utimesSync(p: PortablePath, atime: Date | string | number, mtime: Date | string | number): void

watch

watchFile

writeFilePromise

writeFileSync

writeJsonPromise

  • writeJsonPromise(p: PortablePath, data: any): Promise<void>

writeJsonSync

writePromise

  • writePromise(fd: number, buffer: Buffer, offset?: undefined | number, length?: undefined | number, position?: undefined | number): Promise<number>
  • writePromise(fd: number, buffer: string, position?: undefined | number): Promise<number>

writeSync

  • writeSync(fd: number, buffer: Buffer, offset?: undefined | number, length?: undefined | number, position?: undefined | number): number
  • writeSync(fd: number, buffer: string, position?: undefined | number): number

Static openPromise

Generated using TypeDoc