fileinfo

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSymlink(info os.FileInfo) bool

func NewInfo

func NewInfo(name string, size int64, mode os.FileMode, mtime time.Time, isDir bool) os.FileInfo

NewInfo returns a ew file Info

Types

type Info

type Info struct {
	// contains filtered or unexported fields
}

Info represents a file info

func (*Info) IsDir

func (i *Info) IsDir() bool

IsDir returns true if resoruce is directory

func (*Info) ModTime

func (i *Info) ModTime() time.Time

ModTime returns modification time

func (*Info) Mode

func (i *Info) Mode() os.FileMode

Mode returns file mode

func (*Info) Name

func (i *Info) Name() string

Name returns a name

func (*Info) Size

func (i *Info) Size() int64

Size returns file size

func (*Info) Sys

func (i *Info) Sys() interface{}

Sys returns sys object

Jump to

Keyboard shortcuts

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