fs

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStorage

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

FileStorage implements the port core.FileStorage.

func NewFileStorage

func NewFileStorage(workingDir string) (*FileStorage, error)

NewFileStorage creates a new instance of FileStorage using the given working directory as reference point for relative paths.

func (*FileStorage) Abs

func (fs *FileStorage) Abs(path string) (string, error)

func (*FileStorage) Canonical

func (fs *FileStorage) Canonical(path string) string

func (*FileStorage) DirExists

func (fs *FileStorage) DirExists(path string) (bool, error)

func (*FileStorage) FileExists

func (fs *FileStorage) FileExists(path string) (bool, error)

func (*FileStorage) IsDescendantOf

func (fs *FileStorage) IsDescendantOf(dir string, path string) (bool, error)

func (*FileStorage) Read

func (fs *FileStorage) Read(path string) ([]byte, error)

func (*FileStorage) Rel

func (fs *FileStorage) Rel(path string) (string, error)

func (*FileStorage) SetWorkingDir

func (fs *FileStorage) SetWorkingDir(path string)

func (*FileStorage) WorkingDir

func (fs *FileStorage) WorkingDir() string

func (*FileStorage) Write

func (fs *FileStorage) Write(path string, content []byte) error

Jump to

Keyboard shortcuts

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