pathwrapper

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 10 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 (receiver *Wrapper) BothExtensions() (dotExt, ext string)

func (*Wrapper) DirStatus

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

func (*Wrapper) DotExtension

func (receiver *Wrapper) DotExtension() string

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

func (*Wrapper) Extension

func (receiver *Wrapper) Extension() string

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

func (*Wrapper) ExtensionWrapper

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

func (*Wrapper) GetAFilePath

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

GetAFilePath Get a file path combining file path.

func (*Wrapper) GetAFilePathAsString added in v0.0.4

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

func (*Wrapper) GetBaseDir added in v0.0.6

func (receiver *Wrapper) GetBaseDir() string

func (*Wrapper) GetDirectories

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

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

func (*Wrapper) GetDirectory

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

func (*Wrapper) GetFileInfo

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

func (*Wrapper) GetFiles

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

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

func (*Wrapper) GetNestedDirectories

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

func (*Wrapper) IsDir

func (receiver *Wrapper) IsDir() bool

func (*Wrapper) IsExist

func (receiver *Wrapper) IsExist() bool

func (*Wrapper) IsFile

func (receiver *Wrapper) IsFile() bool

func (*Wrapper) Parent added in v0.0.6

func (receiver *Wrapper) Parent() *Wrapper

func (*Wrapper) String

func (receiver *Wrapper) String() string

func (*Wrapper) Value

func (receiver *Wrapper) Value() string

Jump to

Keyboard shortcuts

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