Fs Stat

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

bdambrosio 93e0a4c 3 files · 3.7 KB Updated

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/tree/main/src/world-tools/fs/fs-stat commit 93e0a4c8db

Frequently asked questions

npx skillmds@latest add bdambrosio/fs-stat