Function forEachChildSync

  • Iterate through every child of a folder, synchronously. This function will not recurse into subdirectories.

    Parameters

    • path: string

      folder path to iterate through

    • func: ((filename) => void)

      iterate function, called for every child

        • (filename): void
        • Parameters

          • filename: string

          Returns void

    • options: undefined | null | BufferEncoding | Record<string, never> | {
          encoding: BufferEncoding | null;
      }

      options to pass through to [[readdirSync]]

    Returns void

  • Parameters

    • path: string
    • func: ((filename) => void)
        • (filename): void
        • Parameters

          Returns void

    • Optional options: "buffer" | {
          encoding: "buffer";
      }

    Returns void

Generated using TypeDoc