unipath

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

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

func New

func New(sep string) *Wrapper

func NewCap

func NewCap(cap int, sep string) *Wrapper

func NewCapStartingPath

func NewCapStartingPath(cap int, sep, startingPath string) *Wrapper

func NewUsingPath added in v0.0.6

func NewUsingPath(curPath, sep string) *Wrapper

func (*Wrapper) Add

func (receiver *Wrapper) Add(
	anyPath string,
) *Wrapper

anyPath can contain separators or without separator both are fine One cannot add path after finalize.

func (*Wrapper) AddLock

func (receiver *Wrapper) AddLock(
	anyPath string,
) *Wrapper

anyPath can contain separators or without separator both are fine

func (*Wrapper) AddPointerStringsPtr added in v0.0.5

func (receiver *Wrapper) AddPointerStringsPtr(
	stringItems *[]*string,
) *Wrapper

func (*Wrapper) AddStringsPtr added in v0.0.5

func (receiver *Wrapper) AddStringsPtr(
	stringItems *[]string,
) *Wrapper

func (*Wrapper) Collection added in v0.0.5

func (receiver *Wrapper) Collection() *corestr.Collection

func (*Wrapper) Finalize

func (receiver *Wrapper) Finalize() *errstr.Result

func (*Wrapper) GetAsPathExt

func (receiver *Wrapper) GetAsPathExt() *pathext.Wrapper

func (*Wrapper) GetAsPathWrapper

func (receiver *Wrapper) GetAsPathWrapper() *pathwrapper.Wrapper

func (*Wrapper) GetBaseDir added in v0.0.5

func (receiver *Wrapper) GetBaseDir() string

func (*Wrapper) GetBaseDirFileInfo added in v0.0.5

func (receiver *Wrapper) GetBaseDirFileInfo() (os.FileInfo, *errorwrapper.Wrapper)

func (*Wrapper) GetBaseDirFiles added in v0.0.5

func (receiver *Wrapper) GetBaseDirFiles(
	isNormalize bool,
) *errstr.ResultsWithErrorCollection

func (*Wrapper) GetBaseDirInfoResult added in v0.0.5

func (receiver *Wrapper) GetBaseDirInfoResult() *dirinfo.Result

func (*Wrapper) GetBaseDirName added in v0.0.6

func (receiver *Wrapper) GetBaseDirName() string

func (*Wrapper) GetBaseDirNames added in v0.0.6

func (receiver *Wrapper) GetBaseDirNames() *[]string

func (*Wrapper) GetDirectoriesOfBaseDir added in v0.0.5

func (receiver *Wrapper) GetDirectoriesOfBaseDir(
	isNormalize bool,
) *errstr.Results

func (*Wrapper) GetFileInfo added in v0.0.5

func (receiver *Wrapper) GetFileInfo() (os.FileInfo, *errorwrapper.Wrapper)

func (*Wrapper) GetFileInfoWrapper added in v0.0.5

func (receiver *Wrapper) GetFileInfoWrapper() *fileinfo.Wrapper

func (*Wrapper) GetFileInfoWrappers added in v0.0.6

func (receiver *Wrapper) GetFileInfoWrappers() *fileinfo.Wrappers

func (*Wrapper) GetFilesOnPath added in v0.0.5

func (receiver *Wrapper) GetFilesOnPath(
	isNormalize bool,
) *errstr.ResultsWithErrorCollection

func (*Wrapper) GetFinalizePath

func (receiver *Wrapper) GetFinalizePath() *errstr.Result

func (*Wrapper) GetRecursiveDirectories added in v0.0.5

func (receiver *Wrapper) GetRecursiveDirectories(
	isNormalize bool,
) *errstr.ResultsWithErrorCollection

Get Recursive dirs from the whole path

func (*Wrapper) GetRecursiveDirectoriesOfBaseDir added in v0.0.5

func (receiver *Wrapper) GetRecursiveDirectoriesOfBaseDir(
	isNormalize bool,
) *errstr.ResultsWithErrorCollection

Get Recursive dirs from the basedir path

func (*Wrapper) GetRecursiveFiles added in v0.0.5

func (receiver *Wrapper) GetRecursiveFiles(
	isContinueOnError bool,
) *errstr.ResultsWithErrorCollection

Get Recursive files from the whole path

func (*Wrapper) GetRecursiveFilesOnBaseDir added in v0.0.5

func (receiver *Wrapper) GetRecursiveFilesOnBaseDir(
	isContinueOnError bool,
) *errstr.ResultsWithErrorCollection

Get Recursive files from the basedir

func (*Wrapper) GetUnixPath added in v0.0.6

func (receiver *Wrapper) GetUnixPath() string

func (*Wrapper) GetWindowsPath added in v0.0.6

func (receiver *Wrapper) GetWindowsPath() string

func (*Wrapper) Has

func (receiver *Wrapper) Has(
	pathSplit string,
) bool

same one needs to be inserted

func (*Wrapper) HasItems

func (receiver *Wrapper) HasItems() bool

func (*Wrapper) IsBaseDirExists added in v0.0.5

func (receiver *Wrapper) IsBaseDirExists() bool

func (*Wrapper) IsEmpty

func (receiver *Wrapper) IsEmpty() bool

func (*Wrapper) IsEqual

func (receiver *Wrapper) IsEqual(wrapper *Wrapper) bool

func (*Wrapper) IsFileExists added in v0.0.5

func (receiver *Wrapper) IsFileExists() bool

func (*Wrapper) IsFinalized

func (receiver *Wrapper) IsFinalized() bool

func (*Wrapper) IsUnixSeparator added in v0.0.5

func (receiver *Wrapper) IsUnixSeparator() bool

func (*Wrapper) IsValid added in v0.0.5

func (receiver *Wrapper) IsValid() bool

func (*Wrapper) IsWindowsSeparator added in v0.0.5

func (receiver *Wrapper) IsWindowsSeparator() bool

func (*Wrapper) Length

func (receiver *Wrapper) Length() int

func (*Wrapper) ListPtr

func (receiver *Wrapper) ListPtr() *[]string

func (*Wrapper) Lock

func (receiver *Wrapper) Lock()

func (*Wrapper) Parent added in v0.0.6

func (receiver *Wrapper) Parent() *Wrapper

func (*Wrapper) Separator added in v0.0.5

func (receiver *Wrapper) Separator() string

func (*Wrapper) Splits added in v0.0.6

func (receiver *Wrapper) Splits() *[]string

func (*Wrapper) SplitsUsing added in v0.0.6

func (receiver *Wrapper) SplitsUsing(separator string) *[]string

func (*Wrapper) String

func (receiver *Wrapper) String() string

func (*Wrapper) Strings

func (receiver *Wrapper) Strings() []string

func (*Wrapper) StringsPtr

func (receiver *Wrapper) StringsPtr() *[]string

func (*Wrapper) ToString

func (receiver *Wrapper) ToString(
	sep string,
	isNormalize bool,
) string

func (*Wrapper) ToStringUptoLastMinus added in v0.0.5

func (receiver *Wrapper) ToStringUptoLastMinus(
	uptoLastIndexMinus int,
	sep string,
	isNormalize bool,
) string

func (*Wrapper) ToWrapperUpto added in v0.0.5

func (receiver *Wrapper) ToWrapperUpto(
	uptoLastIndexMinus int,
	sep string,
	isNormalize bool,
) *Wrapper

func (*Wrapper) Unlock

func (receiver *Wrapper) Unlock() *Wrapper

Jump to

Keyboard shortcuts

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