Skip to main content

fileUtils

Index

Functions

fetchArchiveFromLocator

makeArchiveFromLocator

  • makeArchiveFromLocator(locator: Locator, __namedParameters: { fetchOptions: FetchOptions; inMemory?: boolean; protocol: string }): Promise<ZipFS>
  • Parameters

    • locator: Locator
    • __namedParameters: { fetchOptions: FetchOptions; inMemory?: boolean; protocol: string }

    Returns Promise<ZipFS>

makeBufferFromLocator

  • makeBufferFromLocator(locator: Locator, __namedParameters: { fetchOptions: FetchOptions; protocol: string }): Promise<Buffer>
  • Parameters

    Returns Promise<Buffer>

makeLocator

  • makeLocator(ident: Ident, __namedParameters: { hash?: string; parentLocator: null | Locator; path: string; protocol: string }): Locator
  • Parameters

    • ident: Ident
    • __namedParameters: { hash?: string; parentLocator: null | Locator; path: string; protocol: string }

    Returns Locator

makeSpec

  • makeSpec(__namedParameters: { hash?: string; parentLocator: null | Locator; path: string; protocol: string }): string
  • Parameters

    • __namedParameters: { hash?: string; parentLocator: null | Locator; path: string; protocol: string }

    Returns string

parseSpec