Function scanAsync

  • Returns in a promise the Directory Tree of a given path. This function is asynchronous.

    Parameters

    • path: string

      The path which you want to inspect

    • Optional options: ScanOptions

      An object used as options of the function

    • Optional onFile: CallbackAsync

      A function called when a file is added - has the tree object and its stat as parameters

    • Optional onDir: CallbackAsync

      A function called when a dir is added - has the tree object and its stat as parameters

    Returns Promise<Dree>

    A promise to the directory tree as a Dree object

Generated using TypeDoc