fileinfopath

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	FileInfo os.FileInfo
	FullPath string
	Error    error
}

func New

func New(location string) *Instance

func (*Instance) BothExtension

func (it *Instance) BothExtension() (dotExt, ext string)

func (*Instance) DotExtension

func (it *Instance) DotExtension() (fileName, dotExt string)

func (*Instance) ErrorWrapper

func (it *Instance) ErrorWrapper(errType errtype.Variation) *errorwrapper.Wrapper

func (*Instance) FileName

func (it *Instance) FileName() string

FileName Returns file name with extension

func (*Instance) FileNameExt

func (it *Instance) FileNameExt() string

func (*Instance) FileNameWithoutExt

func (it *Instance) FileNameWithoutExt() string

func (*Instance) HasError

func (it *Instance) HasError() bool

func (*Instance) HasFileInfo

func (it *Instance) HasFileInfo() bool

func (*Instance) IsDir

func (it *Instance) IsDir() bool

func (*Instance) IsEmptyError

func (it *Instance) IsEmptyError() bool

func (*Instance) IsExist

func (it *Instance) IsExist() bool

func (*Instance) IsFile

func (it *Instance) IsFile() bool

func (*Instance) IsInvalidFileInfo

func (it *Instance) IsInvalidFileInfo() bool

func (*Instance) IsInvalidPath

func (it *Instance) IsInvalidPath() bool

func (*Instance) LastModifiedAt

func (it *Instance) LastModifiedAt() *time.Time

func (*Instance) Mode

func (it *Instance) Mode() os.FileMode

func (*Instance) NotDirError

func (it *Instance) NotDirError() *errorwrapper.Wrapper

func (*Instance) NotFileError

func (it *Instance) NotFileError() *errorwrapper.Wrapper

func (*Instance) Size

func (it *Instance) Size() *int64

Jump to

Keyboard shortcuts

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