Options
All
  • Public
  • Public/Protected
  • All
Menu

Node abstract class.

Hierarchy

Index

Constructors

constructor

Properties

path

path: string

Path to node.

Protected sophy

Sophy instance.

Readonly type

type: NodeType = NodeType.Unknown

Node type.

Accessors

name

  • get name(): string

parentPath

  • get parentPath(): string

Methods

copy

  • copy(newPath: string): Promise<this>

delete

  • delete(): Promise<void>

getSize

  • getSize(): Promise<number>

isDirectory

  • isDirectory(): this is Directory

isExists

  • isExists(): Promise<boolean>

isFile

  • isFile(): this is File

move

  • move(newPath: string): Promise<this>

setPath

  • setPath(path: string): void

Generated using TypeDoc