filepaths

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveContents

func RemoveContents(dir string) error

Types

type Path

type Path struct {
	PackageName string
	DirIn       string
	DirOut      string
	FnIn        string
	FnOut       string
	Env         string
	FilterFiles *strings_filter.FilterOpts
}

func (*Path) FileDirOutFnInPath

func (p *Path) FileDirOutFnInPath() string

func (*Path) FileInPath

func (p *Path) FileInPath() string

func (*Path) FileInPathExists

func (p *Path) FileInPathExists() bool

func (*Path) FileOutPath

func (p *Path) FileOutPath() string

func (*Path) LeftExtendDirInPath

func (p *Path) LeftExtendDirInPath(dirExtend string) string

func (*Path) LeftExtendDirOutPath

func (p *Path) LeftExtendDirOutPath(dirExtend string) string

func (*Path) OpenFileOutPath

func (p *Path) OpenFileOutPath() (*os.File, error)

func (*Path) Print

func (p *Path) Print(data []byte, ext string) error

func (*Path) ReadFileInPath

func (p *Path) ReadFileInPath() []byte

func (*Path) ReadFirstFileInPathWithFilter

func (p *Path) ReadFirstFileInPathWithFilter() ([]byte, error)

func (*Path) RemoveFileInPath

func (p *Path) RemoveFileInPath() error

func (*Path) RightExtendDirInPath

func (p *Path) RightExtendDirInPath(dirExtend string) string

func (*Path) RightExtendDirOutPath

func (p *Path) RightExtendDirOutPath(dirExtend string) string

func (*Path) WalkAndApplyFuncToFileType

func (p *Path) WalkAndApplyFuncToFileType(ext string, f func(p string) error) error

func (*Path) WipeDirIn

func (p *Path) WipeDirIn() error

func (*Path) WipeDirOut

func (p *Path) WipeDirOut() error

func (*Path) WriteToFileOutPath

func (p *Path) WriteToFileOutPath(data []byte) error

type Paths

type Paths struct {
	Slice []Path
}

func (*Paths) AddPathToSlice

func (ps *Paths) AddPathToSlice(p Path)

Jump to

Keyboard shortcuts

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