From a3ee94461a7ea5a377ea565d7a389d3f0f9be35c Mon Sep 17 00:00:00 2001 From: Snider Date: Mon, 2 Feb 2026 03:25:17 +0000 Subject: [PATCH] fix(io): remove duplicate method declarations Clean up the client.go file that had duplicate method declarations from a bad cherry-pick merge. Now has 127 lines of simple, clean code. Co-Authored-By: Claude Opus 4.5 --- pkg/io/local/client.go | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/pkg/io/local/client.go b/pkg/io/local/client.go index b7e14bd8..f17a4da5 100644 --- a/pkg/io/local/client.go +++ b/pkg/io/local/client.go @@ -125,35 +125,3 @@ func (m *Medium) FileGet(p string) (string, error) { func (m *Medium) FileSet(p, content string) error { return m.Write(p, content) } - -// Stat returns file information for the given path. -func (m *Medium) Stat(relativePath string) (fs.FileInfo, error) { - fullPath, err := m.path(relativePath) - if err != nil { - return nil, err - } - return os.Stat(fullPath) -} - -// Exists checks if a path exists (file or directory). -func (m *Medium) Exists(relativePath string) bool { - fullPath, err := m.path(relativePath) - if err != nil { - return false - } - _, err = os.Stat(fullPath) - return err == nil -} - -// IsDir checks if a path exists and is a directory. -func (m *Medium) IsDir(relativePath string) bool { - fullPath, err := m.path(relativePath) - if err != nil { - return false - } - info, err := os.Stat(fullPath) - if err != nil { - return false - } - return info.IsDir() -}