Options
All
  • Public
  • Public/Protected
  • All
Menu

Definition for the Item object that contains information of folders used but this module

property

name - The filename of the folder

property

path - The path of the folder

property

title - The title of the file (no extension)

property

fullname - The fullname of the folder (path & name)

property

[extension] - The extension of the folder in lowercase

property

[isDirectory] - Always true in folders

property

[content] - Array of File/Folder content

property

[error] - If something goes wrong the error comes here

property

[deep] - The depth of current content

Hierarchy

Index

Properties

Optional content

content?: IError | (IFile | IFolder)[]

The content of the Folder (if any)

Optional custom

custom?: any

Custom key to add custom properties

Optional deep

deep?: number

The depth of current content

Optional error

error?: any

If something goes wrong the error comes here

Optional extension

extension?: string

The extension of the file with dot in lowercase

fullname

fullname: string

The fullname of the file (path & name & extension)

fullnameb

fullnameb: Buffer

The fullname of the file (path & name & extension buffer version)

Optional isDirectory

isDirectory?: boolean

True for directory, false for files

name

name: string

The filename of the file

nameb

nameb: Buffer

The filename of the file (buffer version)

path

path: string

The path of the file

pathb

pathb: Buffer

The path of the file (buffer version)

title

title: string

The title of the file (no extension)

Generated using TypeDoc