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() -}