pathwrapper

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: 12 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 string

func (*Wrapper) BothExtensions added in v0.0.4

func (it *Wrapper) BothExtensions() (dotExt, ext string)

func (*Wrapper) DirStatus

func (it *Wrapper) DirStatus() *errbool.Result

func (*Wrapper) DotExtension

func (it *Wrapper) DotExtension() string

DotExtension .mp4 reference: https://stackoverflow.com/a/64122557

func (*Wrapper) Extension

func (it *Wrapper) Extension() string

Extension mp4 reference: https://stackoverflow.com/a/64122557

func (*Wrapper) ExtensionWrapper

func (it *Wrapper) ExtensionWrapper() *pathext.Wrapper

func (*Wrapper) GetAFilePath

func (it *Wrapper) GetAFilePath(
	separator string,
	nesting ...string,
) Wrapper

GetAFilePath Get a file path combining file path.

func (*Wrapper) GetAFilePathAsString added in v0.0.4

func (it *Wrapper) GetAFilePathAsString(
	separator string,
	nesting ...string,
) string

func (*Wrapper) GetAllPaths added in v0.3.6

func (it *Wrapper) GetAllPaths(separator string) *errstr.Results

GetAllPaths Get all paths on that root path only, no nested or recursive visit.

func (*Wrapper) GetAllPathsDefault added in v0.3.6

func (it *Wrapper) GetAllPathsDefault() *errstr.Results

func (*Wrapper) GetBaseDir added in v0.0.6

func (it *Wrapper) GetBaseDir() string

func (*Wrapper) GetDirFileInfos added in v0.3.6

func (it *Wrapper) GetDirFileInfos() (
	*[]os.FileInfo, *errorwrapper.Wrapper,
)

func (*Wrapper) GetDirectories

func (it *Wrapper) GetDirectories(separator string) *errstr.Results

GetDirectories Get all directory on that root path only, no nested or recursive visit.

func (*Wrapper) GetDirectoriesDefault added in v0.3.6

func (it *Wrapper) GetDirectoriesDefault() *errstr.Results

GetDirectoriesDefault Get all directory on that root path only, no nested or recursive visit.

func (*Wrapper) GetDirectory

func (it *Wrapper) GetDirectory() *errstr.Result

func (*Wrapper) GetFileInfo

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

func (*Wrapper) GetFiles

func (it *Wrapper) GetFiles(separator string) *errstr.Results

GetFiles Get all files on that root path only, no nested or recursive visit.

func (*Wrapper) GetFilesDefault added in v0.3.6

func (it *Wrapper) GetFilesDefault() *errstr.Results

GetFilesDefault Get all files on that root path only, no nested or recursive visit.

func (*Wrapper) GetNestedDirectories

func (it *Wrapper) GetNestedDirectories(
	separator string,
	nesting ...string,
) *errstr.Results

func (*Wrapper) IsDir

func (it *Wrapper) IsDir() bool

func (*Wrapper) IsExist

func (it *Wrapper) IsExist() bool

func (*Wrapper) IsFile

func (it *Wrapper) IsFile() bool

func (*Wrapper) Parent added in v0.0.6

func (it *Wrapper) Parent() *Wrapper

func (Wrapper) String

func (it Wrapper) String() string

func (*Wrapper) Value

func (it *Wrapper) Value() string

Jump to

Keyboard shortcuts

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