Options
All
  • Public
  • Public/Protected
  • All
Menu

Module next-server/server/lib/recursive-readdir-sync

Index

Functions

recursiveReadDirSync

  • recursiveReadDirSync(dir: string, arr?: string[], rootDir?: string): string[]
  • Recursively read directory

    Parameters

    • dir: string
    • Optional arr: string[]

      This doesn't have to be provided, it's used for the recursion

    • Optional rootDir: string

      Used to replace the initial path, only the relative path is left, it's faster than path.relative.

    Returns string[]

    Array holding all relative paths

Generated using TypeDoc