Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.
Oliver Foster edited this page Jul 13, 2017 · 5 revisions

This class represents a file system location.

Stat {

  constructor([location]), // Create and update if location not undefined

  update([options]), // Fetch or update the file system properties of location

  birthtime, // default: null, utc timestamp
  ctime, // default: null, utc timestamp
  mtime, // default: null, utc timestamp
  Integer:size, // default: null, integer
  isDir, // default: false, boolean
  isFile, // default: false, boolean
  exists, // default: false, boolean

  getChildren([options]), // Fetch or update the children of location

  Array[Stat]:children, // default: null

  clone([cloneHash]) // Clone object, lookup and add to hash if available

}

Options

Stat {

  update({
      update: undefined,
      timestamp: undefined,
      age: undefined
  })

  getChildren({
      update: undefined,
      timestamp: undefined,
      age: undefined
  })

}
Clone this wiki locally