fs

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fs

type Fs interface {
	ChangeWorkingDirectory(string) error
	Info(path string) (PathExistential, PathType)
}

type OsFs

type OsFs struct{}

func (OsFs) ChangeWorkingDirectory

func (o OsFs) ChangeWorkingDirectory(path string) error

func (OsFs) Info

func (o OsFs) Info(path string) (PathExistential, PathType)

type PathExistential

type PathExistential int
const (
	Exists PathExistential = iota
	DoesNotExist
)

type PathType

type PathType int
const (
	None PathType = iota
	IsFile
	IsDirectory
)

Jump to

Keyboard shortcuts

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