pathhelpercore

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseErrorWrapper added in v0.1.2

type BaseErrorWrapper struct {
	ErrorWrapper *errorwrapper.Wrapper `json:"ErrorWrapper,omitempty"`
}

type CompiledPath added in v0.1.2

type CompiledPath struct {
	SourcePath
	Compiled   string `json:"Compiled"`
	IsResolved bool   `json:"IsResolved"`
}

type CompiledPathWithErrorWrapper added in v0.1.2

type CompiledPathWithErrorWrapper struct {
	*CompiledPath
	*BaseErrorWrapper
}

type CompiledPaths added in v0.1.2

type CompiledPaths struct {
	*SourcePaths
	Compiled   *corestr.Collection `json:"Compiled,omitempty"`
	IsResolved bool                `json:"IsResolved"`
	HasIssues  bool                `json:"HasIssues"`
}

type CompiledPathsWithErrorWrapper added in v0.1.2

type CompiledPathsWithErrorWrapper struct {
	*CompiledPaths
	*BaseErrorWrapper
}

type FileInfo added in v0.7.0

type FileInfo struct {
	StateType           strtype.Variant
	RootInfo            *coretaskinfo.Info
	FilePath            string
	FileRawBytesResults *errbyte.Results
}

func (FileInfo) AsJsonContractsBinder added in v0.7.0

func (it FileInfo) AsJsonContractsBinder() corejson.JsonContractsBinder

func (*FileInfo) Json added in v0.7.0

func (it *FileInfo) Json() corejson.Result

func (*FileInfo) JsonParseSelfInject added in v0.7.0

func (it *FileInfo) JsonParseSelfInject(jsonResult *corejson.Result) error

func (*FileInfo) JsonPtr added in v0.7.0

func (it *FileInfo) JsonPtr() *corejson.Result

type InvokerFunc added in v0.7.0

type InvokerFunc func(fileInfo *FileInfo) *errorwrapper.Wrapper

type PathConfig

type PathConfig struct {
	Separator                    string
	IsNormalize                  bool
	IsIgnoreEmptyPath            bool
	IsLongPathFix                bool
	IsExpandEnvironmentVariables bool
}

PathConfig By default: Separator = os.PathSeparator IsNormalize = true IsIgnoreEmptyPath = false IsExpandEnvironmentVariables = true

func NewDefaultPathConfigOrExisting

func NewDefaultPathConfigOrExisting(existingConfig *PathConfig) *PathConfig

By default: Separator = os.PathSeparator IsNormalize = true IsIgnoreEmptyPath = false IsLongPathFix = true IsExpandEnvironmentVariables: true

type SourceDestination added in v0.1.2

type SourceDestination struct {
	Source        *CompiledPath `json:"Source"`
	Destination   *CompiledPath `json:"Destination"`
	IsForce       bool
	IsSkipOnExist bool
	IsOverwrite   bool
}

type SourcePath added in v0.1.2

type SourcePath struct {
	Source      string `json:"Source"`
	IsNormalize bool   `json:"IsNormalize"`
}

type SourcePaths added in v0.1.2

type SourcePaths struct {
	RootDir     string              `json:"RootDir"`
	IsNormalize bool                `json:"IsNormalize"`
	Sources     *corestr.Collection `json:"Sources,omitempty"`
}

Jump to

Keyboard shortcuts

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