local

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDir

func EnsureDir(dir string) error

EnsureDir creates a directory if it doesn't exist

Types

type FileSystem

type FileSystem struct {
	// contains filtered or unexported fields
}

FileSystem implements the iceberg-go FileIO interface for local filesystem

func NewFileSystem

func NewFileSystem(basePath string) *FileSystem

NewFileSystem creates a new local filesystem implementation

func (*FileSystem) Create

func (fs *FileSystem) Create(path string) (io.WriteCloser, error)

Create creates a new file for writing

func (*FileSystem) Exists

func (fs *FileSystem) Exists(path string) (bool, error)

Exists checks if a file exists

func (*FileSystem) Open

func (fs *FileSystem) Open(path string) (io.ReadCloser, error)

Open opens a file for reading

func (*FileSystem) Remove

func (fs *FileSystem) Remove(path string) error

Remove removes a file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL