pathext

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: 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 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 (it *Wrapper) BaseDir() string

func (*Wrapper) DotExtension

func (it *Wrapper) DotExtension() *string

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

func (*Wrapper) ExtDotIndex

func (it *Wrapper) ExtDotIndex() int

func (*Wrapper) Extension

func (it *Wrapper) Extension() *string

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

func (*Wrapper) FileInfoWrapper

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

func (*Wrapper) FileNameWithExtension

func (it *Wrapper) FileNameWithExtension() string

func (*Wrapper) FileNameWithoutExtension

func (it *Wrapper) FileNameWithoutExtension() string

func (*Wrapper) FilteringExt

func (it *Wrapper) FilteringExt() string

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

func (*Wrapper) GetMoreThanExt

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

func (*Wrapper) HasExtension

func (it *Wrapper) HasExtension() bool

func (*Wrapper) IsAnyOfDotExtension

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

func (*Wrapper) IsAnyOfDotExtensionPtr

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

func (*Wrapper) IsAnyOfExtension

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

func (*Wrapper) IsAnyOfExtensionPtr

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

func (*Wrapper) IsDir

func (it *Wrapper) IsDir() bool

func (*Wrapper) IsDotExtension

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

func (*Wrapper) IsExtOrDotExt

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

func (*Wrapper) IsExtension

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

func (*Wrapper) IsExtensionFilterMatch

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

func (*Wrapper) IsExtensionFiltersMatch

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

func (*Wrapper) IsFile

func (it *Wrapper) IsFile() bool

func (*Wrapper) IsNameWithExtensionMatches

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

func (*Wrapper) IsPathContains

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

func (*Wrapper) IsPathEquals

func (it *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