From 525da67b310eca1a0e85cc7fa547d66d7b6b1b2f Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Wed, 29 Jul 2026 23:43:28 +0200 Subject: [PATCH] fs: add Data field to Tree for user-attached state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enables session trees to carry *Session without a separate map. Part of killing Manager — tree IS the session collection. --- fs/tree.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/tree.go b/fs/tree.go index f3a5197..2671c46 100644 --- a/fs/tree.go +++ b/fs/tree.go @@ -25,6 +25,7 @@ type Tree struct { statFn func([]string, string) (os.FileInfo, error) readdirFn func([]string, string) ([]os.DirEntry, error) children map[string]*Tree + Data any // user-attached state } // Option configures a Tree.