pathext

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 8 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(path string) Wrapper

func NewPtr

func NewPtr(path string) *Wrapper

func (*Wrapper) BaseDir added in v0.0.5

func (receiver *Wrapper) BaseDir() string

func (*Wrapper) DotExtension

func (receiver *Wrapper) DotExtension() *string

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

func (*Wrapper) ExtDotIndex

func (receiver *Wrapper) ExtDotIndex() int

func (*Wrapper) Extension

func (receiver *Wrapper) Extension() *string

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

func (*Wrapper) FileInfoWrapper

func (receiver *Wrapper) FileInfoWrapper() *os.FileInfo

func (*Wrapper) FileNameWithExtension

func (receiver *Wrapper) FileNameWithExtension() string

func (*Wrapper) FileNameWithoutExtension

func (receiver *Wrapper) FileNameWithoutExtension() string

func (*Wrapper) FilteringExt

func (receiver *Wrapper) FilteringExt() string

FilteringExt is ext and one char more from left. Panics if char is not there

func (*Wrapper) GetMoreThanExt

func (receiver *Wrapper) GetMoreThanExt(moreIndex int) string

func (*Wrapper) HasExtension

func (receiver *Wrapper) HasExtension() bool

func (*Wrapper) IsAnyOfDotExtension

func (receiver *Wrapper) IsAnyOfDotExtension(
	dotExtensions ...string,
) bool

func (*Wrapper) IsAnyOfDotExtensionPtr

func (receiver *Wrapper) IsAnyOfDotExtensionPtr(
	dotExtensions *[]string,
) bool

func (*Wrapper) IsAnyOfExtension

func (receiver *Wrapper) IsAnyOfExtension(extensions ...string) bool

func (*Wrapper) IsAnyOfExtensionPtr

func (receiver *Wrapper) IsAnyOfExtensionPtr(
	extensions *[]string,
) bool

func (*Wrapper) IsDir

func (receiver *Wrapper) IsDir() bool

func (*Wrapper) IsDotExtension

func (receiver *Wrapper) IsDotExtension(dotExtension string) bool

func (*Wrapper) IsExtOrDotExt

func (receiver *Wrapper) IsExtOrDotExt(extOrDotExt string) bool

func (*Wrapper) IsExtension

func (receiver *Wrapper) IsExtension(extension string) bool

func (*Wrapper) IsExtensionFilterMatch

func (receiver *Wrapper) IsExtensionFilterMatch(
	extensionFilter string,
) bool

func (*Wrapper) IsExtensionFiltersMatch

func (receiver *Wrapper) IsExtensionFiltersMatch(
	extensionsFilter *[]string,
	extensionsLength int,
) bool

func (*Wrapper) IsFile

func (receiver *Wrapper) IsFile() bool

func (*Wrapper) IsNameWithExtensionMatches

func (receiver *Wrapper) IsNameWithExtensionMatches(
	fullPath string,
) bool

func (*Wrapper) IsPathContains

func (receiver *Wrapper) IsPathContains(path string) bool

func (*Wrapper) IsPathEquals

func (receiver *Wrapper) IsPathEquals(path string, ignoreCase bool) bool

Jump to

Keyboard shortcuts

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