path-scurry
    Preparing search index...

    Class DirEntries

    The entries of a directory, from PathBase.readdirLazySync or PathBase.readdirLazyCB.

    Entry i is any integer from 0 up to, but not including, length. The object makes the Path object of an entry on the first call to DirEntries.path for it. The other methods give the same answer as the method of that name on the Path object, and do not make it.

    Index

    The directory that has the entries.

    length: number

    The count of entries in the directory.

    • The Path object of entry i, if it has one.

      Parameters

      • i: number

      Returns PathBase | undefined

    • The name of entry i.

      To test if the entry has a given name, use DirEntries.isNamed.

      Parameters

      • i: number

      Returns string