Fs Stat

Return metadata for a file or directory under scenarios/<world_name>/fs.

bdambrosio Updated 10 repo stars

File contents

fs-stat

Return metadata for a file or directory in the filesystem sandbox.

Input

  • path: Relative path under scenarios/<world_name>/fs (required)

Output

Success returns:

  • resource_id: Note ID containing text content.
  • Note content format:
    • metadata Note linked by meta Relation (file/directory metadata)
    • body text with JSON-form metadata

Examples

{"type":"fs-stat","path":"data/config.json","out":"$stat"}

bdambrosio/cognitive_workbench commit 93e0a4c8db

Frequently asked questions

npx get-skill add bdambrosio/fs-stat-2