fileinfos

package
v0.0.0-...-d9ed7b5 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetItems

func GetItems(path string, all *bool, excludeDirs *[]string, maxLevel int) (*[]Item, error)

Types

type Item

type Item struct {
	Permissions   os.FileMode
	Root          string
	User          string
	Group         string
	Size          int64
	DateModified  int64
	DateCreated   int64
	Name          string
	IsDir         bool
	IsLink        bool
	IsHidden      bool
	IsExecutable  bool
	Link          string
	LinkRoot      string
	LinkName      string
	Extension     string
	LinkExtension string
	GitStatus     string
	Children      *[]Item
	Excluded      bool
}

func (*Item) HumanDate

func (i *Item) HumanDate(layout string) string

func (*Item) HumanPermissions

func (i *Item) HumanPermissions() string

func (*Item) HumanSize

func (i *Item) HumanSize() string

func (*Item) Icon

func (i *Item) Icon() (string, *iconizer.Icon_Info)

func (*Item) OctalPermissions

func (i *Item) OctalPermissions() string

Jump to

Keyboard shortcuts

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