From 6b4d617df080cef71cd8f4b041601cf47ce0edf3 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Wed, 11 Feb 2026 13:23:00 -0600 Subject: feat: adjust read tool so that it can handle dirs too (#13090) --- .opencode/skill/bun-file-io/SKILL.md | 3 +++ 1 file changed, 3 insertions(+) (limited to '.opencode') diff --git a/.opencode/skill/bun-file-io/SKILL.md b/.opencode/skill/bun-file-io/SKILL.md index ea39507d2..f78de3309 100644 --- a/.opencode/skill/bun-file-io/SKILL.md +++ b/.opencode/skill/bun-file-io/SKILL.md @@ -32,6 +32,9 @@ description: Use this when you are working on file operations like reading, writ - Decode tool stderr with `Bun.readableStreamToText`. - For large writes, use `Bun.write(Bun.file(path), text)`. +NOTE: Bun.file(...).exists() will return `false` if the value is a directory. +Use Filesystem.exists(...) instead if path can be file or directory + ## Quick checklist - Use Bun APIs first. -- cgit v1.2.3