findfile

package module
v0.0.0-...-e979453 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 7 Imported by: 5

README

go-windows-findfile

Windows native FindFile-API's Wrapper.(package findfile)

func Walk

    func Walk(pattern string, callback func(*FileInfo) bool) error
        func (this *FileInfo) Name() string
        func (this *FileInfo) Size() int64
        func (this *FileInfo) ModTime() time.Time
        func (this *FileInfo) Mode() os.FileMode
        func (this *FileInfo) Attribute() uint32
        func (this *FileInfo) IsReparsePoint() bool
        func (this *FileInfo) IsReadOnly() bool
        func (this *FileInfo) IsDir() bool
        func (this *FileInfo) IsHidden() bool
        func (this *FileInfo) IsSystem() bool
  • Walk calls callback for each file which matches pattern. (not recursive)
  • findfile.FileInfo is compatible to os.FileInfo.

func Glob,Globs

    func Glob(pattern string) ([]string, error)
    func Globs(patterns []string) []string

Glob and Globs expand filename matching with wildcard.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandEnv

func ExpandEnv(pattern string) string

ExpandEnv replace ~/ and ~\ to %HOME% or %USERPROFILE%, and %ENVIRONMENTVARIABLE% to its' value.

func GetFileAttributes

func GetFileAttributes(status os.FileInfo) uint32

func Glob

func Glob(pattern string) ([]string, error)

Glob expands filenames matching with wildcard-pattern.

func Globs

func Globs(patterns []string) []string

Globs expands filenames matching with wildcard-patterns.

func Walk

func Walk(pattern string, callback func(*_FileInfo) bool) error

func WalkContext

func WalkContext(ctx context.Context, pattern string, callback func(*_FileInfo) bool) error

Types

type FileInfo

type FileInfo = _FileInfo

Jump to

Keyboard shortcuts

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