Class NodeAbstract

Hierarchy (view full)

Constructors

  • Parameters

    • data: NodeData
    • Optional davService: RegExp

    Returns Node

Properties

_attributes: Attribute
_data: NodeData
_knownDavService: RegExp = ...

Accessors

  • get attributes(): Attribute
  • Get the file attribute

    Returns Attribute

  • get basename(): string
  • Get this object name

    Returns string

  • get crtime(): undefined | Date
  • Get the file creation time

    Returns undefined | Date

  • get dirname(): string
  • Get the directory path leading to this object Will use the relative path to root if available

    Returns string

  • get encodedSource(): string
  • Get the encoded source url to this object for requests purposes

    Returns string

  • get extension(): null | string
  • Get this object's extension

    Returns null | string

  • get fileid(): undefined | number
  • Get the node id if defined. Will look for the fileid in attributes if undefined.

    Returns undefined | number

  • get isDavRessource(): boolean
  • Is this a dav-related ressource ?

    Returns boolean

  • get mime(): undefined | string
  • Get the file mime

    Returns undefined | string

  • get mtime(): undefined | Date
  • Get the file modification time

    Returns undefined | Date

  • get owner(): null | string
  • Get the file owner

    Returns null | string

  • get path(): string
  • Get the absolute path of this object relative to the root

    Returns string

  • get root(): null | string
  • Get the dav root of this object

    Returns null | string

  • get size(): undefined | number
  • Get the file size

    Returns undefined | number

  • get source(): string
  • Get the source url to this object

    Returns string

Methods

  • Rename the node This aliases the move method for easier usage

    Parameters

    • basename: string

      The new name of the node

    Returns void

  • Update the mtime if exists.

    Returns void