paths

package
v0.0.0-...-3015c2b Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBlacklist = []string{
	".ij",
	".git",
}

Functions

func DirContents

func DirContents(dirname string) ([]os.FileInfo, error)

func DirExists

func DirExists(path string) (bool, error)

func EnsureDirExists

func EnsureDirExists(dirname string, mode os.FileMode) error

func EnsureParentExists

func EnsureParentExists(path string, mode os.FileMode) error

func FileExists

func FileExists(path string) (bool, error)

func PathExists

func PathExists(path string) (bool, error)

Types

type Copier

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

func NewCopier

func NewCopier(logger logging.Logger, project string) *Copier

func (*Copier) Copy

func (c *Copier) Copy(src, dest string, blacklist map[string]struct{}) error

type FilePair

type FilePair struct {
	Src  string
	Dest string
}

type Remover

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

func NewRemover

func NewRemover(project string) *Remover

func (*Remover) Remove

func (r *Remover) Remove(patterns, blacklistPatterns []string, shouldRemove func(string) (bool, error)) error

type Transferer

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

func NewTransferer

func NewTransferer(
	project string,
	scratch string,
	workspace string,
	logger logging.Logger,
) *Transferer

func (*Transferer) Export

func (t *Transferer) Export(patterns, blacklistPatterns []string) error

func (*Transferer) Import

func (t *Transferer) Import(patterns, blacklistPatterns []string) error

Jump to

Keyboard shortcuts

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